Search Discussions
-
http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1 thoughts? rday -- ======================================================================== Robert P. J. Day ...
Robert 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 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 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 ...
R
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 ...
Mk
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 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.
Nov 2, 2009 at 7:54 am
Nov 5, 2009 at 10:42 pm -
40
Python & Go
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, ...Kj
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, ...
Saketh
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 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 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 ...
Kj
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 ...
Me
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 ...
Antony
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 ...
Vsoler
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 ...
Esmail
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: ...
N00m
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 ...
Markolopa
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 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 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 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 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 ...
Gnarlodious
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. 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 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 ...
N00m
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 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 ...
Aahz
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 ...
Kj
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 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 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 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 ...
Mk
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 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 ...
Cooch
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 Dahl
Nov 30, 2009 at 8:52 pm
Dec 21, 2009 at 7:35 am -
16
Bored.
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 ...Necronymouse
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. ...
Luca72
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 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 Subervi
Nov 26, 2009 at 1:47 pm
Nov 27, 2009 at 8:18 pm -
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. 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 ...
Tbourden
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 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. 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 ...
7stud
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'] = ...
Lee
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 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.
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 Subervi
Nov 30, 2009 at 12:26 pm
Nov 30, 2009 at 11:40 pm
Group Overview
group | python-list |
categories | python |
discussions | 530 |
posts | 3,377 |
users | 655 |
website | python.org |
655 users for November 2009
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)