Search Discussions

530 discussions - 3,377 posts

  • http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1 thoughts? rday -- ======================================================================== Robert P. J. Day ...
    Robert P. J. DayRobert P. J. Day
    Nov 11, 2009 at 9:57 am
    Nov 23, 2009 at 10:35 am
  • I couldn't find a library providing a bijective map data structure (allowing for constant-time lookups by value) in the few minutes I looked, so I took a few more minutes to code one up: ...
    Joshua BronsonJoshua Bronson
    Nov 19, 2009 at 11:24 pm
    Dec 13, 2009 at 12:01 pm
  • Hello all, I just posted to my blog about a feature that I'd like to see added to Python. Before I go through the trouble of learning how to write a PEP or how to extend the Python interpreter, I ...
    The Music GuyThe Music Guy
    Nov 26, 2009 at 2:35 am
    Dec 4, 2009 at 3:24 pm
  • Forgive me if i don't properly explain the problem but i think the following syntax would be quite beneficial to replace some redundant "if's" in python code. if something_that_returns_value() as ...
    Nov 10, 2009 at 7:23 pm
    Nov 19, 2009 at 12:44 pm
  • Hello, Some claim that one should test for None using: if x is None: ..but the standard equality which is theoretically safer works as well: if x == None: So, which one is recommended? Can there be ...
    Nov 6, 2009 at 1:20 pm
    Nov 11, 2009 at 9:32 am
  • This is a question for the language mavens that I know hang out here. It is not Python related, except that recent comparisons of Python to Google's new Go language brought it to mind. NOTE that this ...
    Steve FergSteve Ferg
    Nov 16, 2009 at 4:54 pm
    Dec 4, 2009 at 7:11 am
  • I'd like to do: resultlist = operandlist1 + operandlist2 where for example operandlist1=[1,2,3,4,5] operandlist2=[5,4,3,2,1] and resultlist will become [6,6,6,6,6]. Using map(), I can do: map(lambda ...
    Jon P.Jon P.
    Nov 2, 2009 at 7:54 am
    Nov 5, 2009 at 10:42 pm
  • I'm just learning about Google's latest: the GO (Go?) language. (e.g. http://golang.org or http://www.youtube.com/watch?v=rKnDgT73v8s). There are some distinctly Pythonoid features to the syntax, ...
    Nov 12, 2009 at 12:53 am
    Nov 17, 2009 at 8:10 am
  • Hi everyone, I am proud to announce the release of Pyfora (http://pyfora.org), an online community of Python enthusiasts to supplement comp.lang.python and #python. While the site is small right now, ...
    Nov 1, 2009 at 7:06 am
    Nov 7, 2009 at 8:39 pm
  • Hi Maybe this is maybe something it has been answered somewhere but I haven't been able to make it work. I wanna pass one variable to a callback function and I've read the proper way is: ...
    Lord EldritchLord Eldritch
    Nov 1, 2009 at 7:53 pm
    Nov 5, 2009 at 9:04 am
  • I recently asked how to support one class/function per module under the title 'How to import only one module in a package when the package __init__.py has already imports the modules?' I summarize my ...
    Peng YuPeng Yu
    Nov 1, 2009 at 10:11 pm
    Nov 12, 2009 at 1:10 pm
  • In Perl one can assign a value to any element of an array, even to ones corresponding to indices greater or equal than the length of the array: my @arr; $arr[999] = 42; perl grows the array as needed ...
    Nov 6, 2009 at 12:12 pm
    Nov 12, 2009 at 12:22 am
  • Good People I do not write stuff for humans, as it has been my job to remove humans from the loop. But I have to make a front end to a component database where everything was built in Python. I have ...
    Nov 16, 2009 at 10:06 am
    Nov 25, 2009 at 8:03 pm
  • Hi all I just wanted to know which module is best for developing designing interface in python . i have come across some modules which are listed here . please tell your suggestions and comments to ...
    Nov 9, 2009 at 4:49 am
    Nov 17, 2009 at 4:38 pm
  • In the accounting department I am working for we are from time to time confronted to the following problem: A customer sends us a check for a given amount, but without specifying what invoices it ...
    Nov 7, 2009 at 9:39 pm
    Nov 11, 2009 at 2:30 am
  • Ok, this is somewhat unexpected: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. -9 9 I would have ...
    Nov 30, 2009 at 12:39 am
    Dec 6, 2009 at 2:07 pm
  • Any comment: class Vector: def __init__(self, x, y): self.x = x self.y = y def __cmp__(self, v): if self.x < v.x and self.y v.y: return -1 return 0 def v_cmp(v1, v2): if v1.x < v2.x and v1.y v2.y: ...
    Nov 22, 2009 at 9:21 am
    Nov 23, 2009 at 5:16 am
  • Hi, Here is another bug that I just got. Twenty minutes lost to find it... class ValueColumn(AbstractColumn): def __init__(self, name, header, domain_names): if type(domain_names) != tuple: raise ...
    Nov 29, 2009 at 9:12 pm
    Dec 10, 2009 at 6:47 am
  • Hello, I have been using freeze.py on 32 bit linux distributions without a problem. But recently I tried to do the same on RHEL5 x86_64 and ran into some issues. 1) When I ran the script, I got ...
    Girish VenkatasubramanianGirish Venkatasubramanian
    Nov 3, 2009 at 7:15 pm
    Nov 6, 2009 at 1:54 am
  • Hi, Recently I put together this incomplete comparison chart in an attempt to choose between the different alternatives to py2exe: ...
    Jonathan HartleyJonathan Hartley
    Nov 3, 2009 at 3:58 pm
    Sep 6, 2014 at 12:31 pm
  • Has anyone every tried wrapping the CPython lib into a daemon with an RPC mechanism in order to move the GIL out of the process? I have multiple audio threads, each of which use the python ...
    Patrick StinsonPatrick Stinson
    Nov 22, 2009 at 9:38 pm
    Dec 9, 2009 at 5:38 pm
  • I ran the following program, and found its output surprising in one place: class OnlyAl: def __getitem__(self, key): return 'al' class OnlyBob(dict): def __getitem__(self, key): return 'bob' import ...
    Steve HowellSteve Howell
    Nov 15, 2009 at 6:25 pm
    Nov 17, 2009 at 4:12 pm
  • Hello. The "upgrade to Python 3.1 has been disaster so far. I can't figure out how to print Chinese to a browser. If my script is: #!/usr/bin/python print("Content-type:text/html\n\n") print('?') the ...
    Nov 30, 2009 at 12:36 pm
    Dec 6, 2009 at 10:22 am
  • This is the tragic story of this evening: 1. Aspirins to lessen the pain somewhat. 2. Over in [comp.programming] someone mentions paper on Quicksort. 3. I recall that X once sent me link to paper ...
    Alf P. SteinbachAlf P. Steinbach
    Nov 23, 2009 at 9:06 pm
    Dec 5, 2009 at 4:20 pm
  • Hi- I am reading the online tutorial along with a book I bought on Python. I would like to test out what I know so far by solving programming challenges. Similar to what O'Reilly Learning Perl has. I ...
    Astral orangeAstral orange
    Nov 27, 2009 at 3:24 am
    Dec 1, 2009 at 9:14 am
  • Why does "h" instance stay alive? class Moo: cnt = 0 def __init__(self, x): self.x = x self.__class__.cnt += 1 if self.__class__.cnt 2: self.crush_me() def crush_me(self): print 'Will self be ...
    Nov 25, 2009 at 4:57 am
    Nov 26, 2009 at 4:47 pm
  • Hi, I am trying to teach myself Python and have a good book to help me but I am stuck on something and I would like for someone to explain the following piece of code for me and what it's actually ...
    Astral orangeAstral orange
    Nov 23, 2009 at 5:19 pm
    Nov 25, 2009 at 3:08 pm
  • Comparing Go to another computer language -- do you recognize it? http://www.cowlark.com/2009-11-15-go/ -- Aahz (aahz at pythoncraft.com) <* http://www.pythoncraft.com/ "Debugging is twice as hard as ...
    Nov 21, 2009 at 1:12 am
    Nov 24, 2009 at 1:31 pm
  • This is "meta-question" about comp.lang.python. I apologize in advance if it has been already discussed. Also, I don't know enough about the underlying mechanics of comp.lang.python, so this may be ...
    Nov 13, 2009 at 11:29 pm
    Nov 19, 2009 at 4:25 pm
  • Hi; I've determined the problem in a script is I can't open a file to write it: script = open(getpic, "w") # where getpic is already defined Here are the permissions: -rwxr-xr-x 1 root root 4649 Nov ...
    Victor SuberviVictor Subervi
    Nov 10, 2009 at 8:38 pm
    Nov 12, 2009 at 3:10 pm
  • I have a serious privileges problem that is making it impossible to serve python pages on a CentOS server. It appears that nobody on the CentOS discussion list has a solution to this problem. I'm ...
    Victor SuberviVictor Subervi
    Nov 7, 2009 at 2:13 pm
    Nov 10, 2009 at 3:08 pm
  • Suppose I have a list of strings, A. I want to compute the list (call it B) of strings that are elements of A but doesn't match a regex. I could use a for loop to do so. In a functional language, ...
    Peng YuPeng Yu
    Nov 6, 2009 at 4:19 am
    Nov 7, 2009 at 6:47 pm
  • #!/usr/local/bin/python import timeit def pythonic(): nonevar = None zerovar = 0 for x in range(1000000): if nonevar: pass if zerovar: pass def unpythonic(): nonevar = None zerovar = 0 for x in ...
    Nov 24, 2009 at 12:03 pm
    Nov 26, 2009 at 11:12 am
  • Hi. I'm trying to port (just for fun), my old Sinclair Spectrum emulator, ASpectrum, from C to Python + pygame. Although the Sinclair Spectrum has a simple Z80 8 bit 3.5Mhz microprocessor, and no ...
    Santiago RomeroSantiago Romero
    Nov 12, 2009 at 12:35 pm
    Nov 15, 2009 at 10:12 pm
  • Hi, guys! I want to implement such specific feature: I have a server written in Python. I have a client written in C++. I want to use Python as network protocol between them. I mean: client send to ...
    Nov 10, 2009 at 8:39 am
    Nov 15, 2009 at 6:22 am
  • I am updating an extension module from Python2.6 to Python3. I used to pass character codes to the extension module, for example, I would write: with the corresponding C extension routine defined as ...
    Joachim DahlJoachim Dahl
    Nov 30, 2009 at 8:52 pm
    Dec 21, 2009 at 7:35 am
  • Hello, I am learning python for about 2 years and I am bored. Not with python but I have a little problem, when i want to write something I realise that somebody had alredy written it! So i don?t ...
    Nov 30, 2009 at 10:14 pm
    Dec 3, 2009 at 11:05 pm
  • hello i have a problem i have this str = 'D3' and i need to trasform in 0xd3 type int and not type string how i can do this? if i do hex(int(str,16) ) i obtain a string and this is not what i need. ...
    Nov 27, 2009 at 8:54 am
    Nov 28, 2009 at 8:26 pm
  • It's not clear to me whether WindowsError is available on linux or not, after I read the document. But I see WindowsError in shutil.py. Could you somebody let me know what cause the following error? ...
    Peng YuPeng Yu
    Nov 18, 2009 at 2:18 am
    Nov 28, 2009 at 5:40 pm
  • Hi; I have the following code: import cgitb; cgitb.enable() import cgi import MySQLdb from login import login user, passwd, db, host = login() db = MySQLdb.connect(host, user, passwd, db) cursor= ...
    Victor SuberviVictor Subervi
    Nov 26, 2009 at 1:47 pm
    Nov 27, 2009 at 8:18 pm
  • Dear experts, Since no py IDE I found has easy hg access. IDEs PIDA and Eric claim Mercurial support not found i.e. buttons to clone, commit and push to repositories to define dev env dvcs, editor ...
    Nov 23, 2009 at 7:20 pm
    Nov 27, 2009 at 9:50 am
  • One reaction to <url: <url: http://preview.tinyurl.com/ProgrammingBookP3 has been that turtle graphics may be off-putting to some readers because it is associated with children's learning. What do ...
    Alf P. SteinbachAlf P. Steinbach
    Nov 12, 2009 at 6:21 am
    Nov 20, 2009 at 7:39 pm
  • Hi, I was looking for a facility similar to slices in python library that would avoid the implicit creation of a new list and copy of elements that is the default behaviour. Instead I'd rather have a ...
    Nov 18, 2009 at 3:34 pm
    Nov 20, 2009 at 9:17 am
  • Is there a Python version of C's language #define statements? Example: #define ReadMem( (x) ) memory[ (x) ] Instead of using a function, when you call to ReadMem(), the code is INCLUDED, (no function ...
    Santiago RomeroSantiago Romero
    Nov 12, 2009 at 4:43 pm
    Nov 15, 2009 at 11:17 am
  • i'm sure there's a painfully obvious answer to this, but is there a reason i can't do: File "<stdin ", line 1 help(import) ^ SyntaxError: invalid syntax on the other hand, i can certainly go into ...
    Robert P. J. DayRobert P. J. Day
    Nov 6, 2009 at 9:56 am
    Nov 6, 2009 at 6:04 pm
  • I'm trying to install lxml, but I can't figure out the installation instructions. Here: http://codespeak.net/lxml/installation.html it says: 1) Get the easy_install tool. Ok, I went to the ...
    Nov 11, 2009 at 12:49 pm
    Nov 12, 2009 at 1:16 am
  • hi, rfids= ['01','02'] i = 01 row = {} items = [] for rfid in rfids: brains = ['1','2'] if brains: for brain in brains: # this loop must run only once for each value of i row['itemnos'] = ...
    Nov 6, 2009 at 2:15 pm
    Nov 6, 2009 at 6:01 pm
  • Hi all, I'm contemplating setting up a Python-powered website for the tourist industry, which will involve a web service, a good deal of XML processing, and a Django-powered front-end. If the project ...
    Nick MellorNick Mellor
    Nov 26, 2009 at 12:24 am
    Dec 7, 2009 at 2:38 am
  • Hello everyone, I am fairly new to Python and occasionally run into problems that are almost always resolved by referring to this mailing-list's archives. However, I have this one issue which has got ...
    Nitin Changlani.Nitin Changlani.
    Nov 28, 2009 at 10:19 pm
    Dec 1, 2009 at 5:01 am
  • Hi; I need a recommendation. I want to print out data like this: <td bgcolor='blue' <a href='???' blue</a </td <td bgcolor='red' <a href='???' red</a </td and enable the user to select the various ...
    Victor SuberviVictor Subervi
    Nov 30, 2009 at 12:26 pm
    Nov 30, 2009 at 11:40 pm
Group Navigation
period‹ prev | Nov 2009 | next ›
Group Overview
grouppython-list @

655 users for November 2009

Diez B. Roggisch: 95 posts Terry Reedy: 90 posts Steven D'Aprano: 82 posts Victor Subervi: 81 posts Chris Rebert: 75 posts Gabriel Genellina: 67 posts Alf P. Steinbach: 61 posts Ben Finney: 60 posts Dave Angel: 59 posts MRAB: 59 posts Lie Ryan: 49 posts Sturlamolden: 49 posts Aahz: 48 posts Peng Yu: 46 posts Steven D'Aprano: 46 posts Steve Howell: 44 posts R: 42 posts Rami Chowdhury: 39 posts Carl Banks: 37 posts Jon Clements: 34 posts
show more