Search Discussions
-
How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for my ...
Mark Tarver
Dec 8, 2006 at 11:07 am
Mar 15, 2007 at 8:10 pm -
Every Python programmer gets this message occasionally: IndexError: list index out of range The message tells you where the error occurred, but it doesn't tell you what the range and the offending ...
Russ
Dec 4, 2006 at 12:38 am
Dec 8, 2006 at 11:20 am -
Why doesn't the tuple type have an index method? It seems such a bizarre restriction that there must be some reason for it. Yes, I know it's a fairly rare requirement. Regards, Nick Maclaren.
Nick Maclaren
Dec 14, 2006 at 11:24 am
Dec 22, 2006 at 4:57 am -
Hello, I've always been using the has_key() method to test if a dictionary contains a certain key. Recently I tried the same using 'in', e.g. d = { ... } if k in d: ... and found that it seems to ...
Paul Melis
Dec 6, 2006 at 12:17 pm
Dec 15, 2006 at 5:55 pm -
Hi, I have a python script on a unix system that runs fine. I have a python script on a windows system that runs fine. Both use tabs to indent sections of the code. I now want to run them on the same ...
Ben
Dec 27, 2006 at 6:12 pm
Jan 26, 2007 at 5:06 pm -
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH ...
Ben Sizer
Dec 25, 2006 at 1:16 am
Jan 4, 2007 at 8:09 pm -
I would like to spark the discussion about the following syntax problem I encounter. THE PROBLEM I have a lot times the following code: for x in [-2, -1, 0, 1, 2, 3, 4]: if x 0: ... more code... It ...
At
Dec 13, 2006 at 2:56 pm
Dec 16, 2006 at 4:00 pm -
I come from a background of Java and C# where it is common practise to have one class per file in the file/project structure. As I have understood it, it is more common practice to have many classes ...
Matias Jansson
Dec 12, 2006 at 8:29 am
Dec 25, 2006 at 6:40 pm -
When getting data from a database using the dbapi and an SQL query, how do you in general round trip the data? Especially date-time? An SQL datetime column translates nicely into a Python datetime ...
Dyork
Dec 15, 2006 at 10:44 am
Dec 18, 2006 at 5:00 pm -
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable that ...
Tim Daneliuk
Dec 14, 2006 at 9:51 pm
Dec 22, 2006 at 4:44 am -
Or simply put parentheses around the tuple on the left, and use the ending parenthesis to get to the last line: (top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1, utc2, utc3, ...
John Roth
Dec 7, 2006 at 3:20 pm
Dec 8, 2006 at 9:57 am -
hi All, instead of questions, my first success story: I converted my first MatLab algorithm into Python (using SciPy), and it not only works perfectly, but also runs much faster: MatLab: 14 msec ...
Stef Mientki
Dec 29, 2006 at 10:14 pm
Jan 1, 2007 at 6:56 pm -
Can someone recommend me a good API for writing a sexy looking (Rich UI like WinForms) shrink wrap application My requirement is that the application needs to look as good on Windows as on the Apple ...
The Night Blogger
Dec 16, 2006 at 8:22 pm
Dec 21, 2006 at 1:48 pm -
I'm not sure if this has been done before, but I couldn't easily find any prior work on Google, so here I present a simple decorator for documenting and verifying the type of function arguments. ...
Chris
Dec 21, 2006 at 8:49 pm
Dec 23, 2006 at 1:38 pm -
Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic ...
Brian Blais
Dec 14, 2006 at 5:27 pm
Dec 20, 2006 at 11:38 am -
It looks to me like python hosting, aka webfaction, have shut down access to all projects hosted under their free hosting for open source python projects program. Including mine (nose). With no ...
Jpellerin+Nose
Dec 19, 2006 at 3:21 am
Dec 23, 2006 at 12:59 am -
Hi everyone- I've been away from coding for a while (I turned into a professional photographer)... So now I've taken up a project involving working with EXIF and XMP metadata in image files (mainly ...
Brian
Dec 20, 2006 at 5:36 am
Dec 24, 2006 at 5:31 pm -
Hi Guys, I've been using the following IDE, "Pythonwin - Python IDE and GUI Framework for Windows. Copyright 1994-2001 Mark Hammond " With respect to my work, I had created my own modules (.py files) ...
Mohan
Dec 11, 2006 at 10:56 am
Dec 15, 2006 at 10:03 am -
Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no ...
Amir Michail
Dec 1, 2006 at 9:24 am
Dec 12, 2006 at 6:22 pm -
Hi, while writing my last program I came upon the problem of accessing a common local variable by a bunch of functions. I wanted to have a function which would, depending on some argument, return ...
Karl Kofnarson
Dec 1, 2006 at 9:33 pm
Dec 12, 2006 at 2:14 pm -
Is there a module that allows me to find errors that occur due to copy by reference? I am looking for something like the following: Traceback (most recent call last): File "<stdin ", line 1, in ? ...
Niels L Ellegaard
Dec 9, 2006 at 5:22 am
Dec 11, 2006 at 5:17 pm -
Hi, The function len() is not mentioned in the Python 3000 PEPs. I suggest that at least lists, tupples, sets, dictionaries and strings get a len() method. I think the len function can stay, removing ...
Thomas Guettler
Dec 6, 2006 at 12:16 pm
Dec 10, 2006 at 1:40 pm -
I am sure this is a basic math issue, but is there a better way to ensure an int variable is divisible by 4 than by doing the following; x = 111 x = (x /4) * 4 Just seems a bit clunky to me.
Geskerrett
Dec 4, 2006 at 5:10 pm
Dec 6, 2006 at 4:55 am -
I'm trying to get data through my serial port from a CMUcam. This gizmo tracks a color and returns a packet of data. The packet has nine data points (well, really eight since the first point is just ...
Lone Wolf
Dec 3, 2006 at 4:02 am
Dec 4, 2006 at 3:48 pm -
(Note: PEPs in the 3xxx number range are intended for Python 3000) PEP: 3107 Title: Function Annotations Version: $Revision: 53169 $ Last-Modified: $Date: 2006-12-27 20:59:16 -0800 (Wed, 27 Dec 2006) ...
Tony Lownds
Dec 29, 2006 at 11:00 pm
Jan 1, 2007 at 11:01 pm -
Hi, When I use dir() I don't see the underscore items. Is there anything that will show all the private vars and functions? johnf
Johnf
Dec 29, 2006 at 11:35 am
Jan 1, 2007 at 5:50 am -
The documentation for dedent says, "Remove any whitespace than can be uniformly removed from the left of every line in `text`", yet I'm finding that it's also modifying the '\t' characters, which is ...
Tom Plunket
Dec 16, 2006 at 8:26 pm
Dec 30, 2006 at 5:55 am -
Hi, I am writing a code that needs to iterate over 3 lists at the same time, i.e something like this: for x1 in l1: for x2 in l2: for x3 in l3: print "do something with", x1, x2, x3 What I need to do ...
Gal Diskin
Dec 13, 2006 at 1:47 pm
Dec 27, 2006 at 7:45 pm -
Is there a difference between <code class HelloWorld: def index(self): index.exposed = True return "Hello world!" </code and <code class HelloWorld: def index(self): self.exposed = True return "Hello ...
Gert Cuykens
Dec 18, 2006 at 7:40 pm
Dec 22, 2006 at 4:12 pm -
Comparing file system paths as strings is very brittle. Is there a better way to test if two paths point to the same file or directory (and that will work across platforms?) Thanks, -Sandra
Sandra-24
Dec 17, 2006 at 1:02 am
Dec 17, 2006 at 5:14 pm -
This month there was/is a 1000+ long thread called: "merits of Lisp vs Python" In comp.lang.lisp. If you followed even parts of the thread, AND previously used only one of the languages AND (and this ...
Paddy3118
Dec 28, 2006 at 4:51 pm
Jan 6, 2007 at 4:12 pm -
Hi, I'm writing a program which imports an external module writing in C and calls a function provided by the module to do my job. But the method produces a lot of output to the stdout, and this ...
Fdu Xiaojf
Dec 26, 2006 at 7:49 am
Dec 30, 2006 at 5:47 pm -
I don't know whether anyone can help, but I have an odd problem. I have a PSP (Spyce) script that makes many calls to populate a database. They all work without any problem except for one statement. ...
Ben
Dec 29, 2006 at 11:09 am
Dec 30, 2006 at 8:02 am -
I'm looking for a module to do fuzzy comparison of strings. I have 2 item master files which are supposed to be identical, but they have thousands of records where the item numbers don't match in ...
Steve Bergman
Dec 26, 2006 at 6:05 pm
Dec 28, 2006 at 3:28 pm -
I seem to always have hard time understaing how this regular expression works, especially how on earth do people bring it up as part of computer programming language. Natural language processing ...
Asper Faner
Dec 19, 2006 at 4:25 am
Dec 25, 2006 at 11:33 pm -
hi, how can i skip printing the last line using loops (for /while) eg for line in open("file): print line. I want to skip printing last line of the file.thanks
Eight02645999
Dec 15, 2006 at 6:47 am
Dec 18, 2006 at 8:42 pm -
No matter what I do I cant get the following code to do what I expect. I hadn't used subprocess t o read and write to pipes of a still-running app, and I just can't seem to get it right. What gives? ...
Calvin Spealman
Dec 5, 2006 at 7:10 pm
Dec 9, 2006 at 7:53 am -
Hi. One of the things I'd like to do with Python is find a way to consistently implement Smalltalk's "loose methods". This is a capability whereby additional methods can be added dynamically to ...
Jan Theodore Galkowski
Dec 27, 2006 at 3:49 am
Jan 26, 2007 at 3:53 pm -
Hi all, While working on support at work, I have been picking away at Python - because I think it could be a valuable scripting tool for building utilities from. I have been reading the python.org ...
Jonathan.beckett
Dec 28, 2006 at 4:40 pm
Jan 2, 2007 at 8:13 pm -
1. first of all, what is the English jargon (Optimize? But I think this is not a very good keyword :( )for this problem? So I can use it to search on the internet 2. is there any free/open lib for ...
Oyster
Dec 24, 2006 at 4:39 am
Dec 30, 2006 at 4:24 pm -
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I am ...
Rob
Dec 15, 2006 at 5:01 pm
Dec 17, 2006 at 2:30 pm -
Hi, i am new to python and i have a question about how decorators are working. I have understand HOW they do their magic but i am trying to figure out WHEN they do it... I have the following simple ...
King kikapu
Dec 4, 2006 at 5:56 pm
Dec 5, 2006 at 4:30 pm -
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet utilities ...
Xah Lee
Dec 23, 2006 at 1:08 am
Jan 22, 2007 at 5:34 am -
With regexps you can search for strings matching it. For example, given the regexp: "foobar\d\d\d". "foobar123" would match. I want to do the reverse, from a regexp generate all strings that could ...
BJörn Lindqvist
Dec 22, 2006 at 2:30 pm
Dec 26, 2006 at 12:12 am -
Hi, I have a python script that uses a C extention. I keep getting a recurring problem that causes a core dump a few lines after the C extention return data back tp python. I tried using pbd and gdb ...
Sheldon
Dec 17, 2006 at 10:01 am
Dec 19, 2006 at 9:34 pm -
I'm getting a strange behaviour from the "pathname" and "lineno" formatter mapping keys. Instead of my file and my line number I get: /usr/lib/python2.4/logging/__init__.py as the file, and 1072 as ...
Tekkaman
Dec 13, 2006 at 5:02 pm
Dec 15, 2006 at 11:14 am -
I am studying Python language. I have Python 2.5 installed in my PC which is running on Windows XP. I placed the the script called "python_script" in C:\Python25 directory where all the other Python ...
Rich murphy
Dec 14, 2006 at 1:16 am
Dec 15, 2006 at 6:51 am -
what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like to hear from those of you who ...
Bryan
Dec 11, 2006 at 7:13 am
Dec 15, 2006 at 3:52 am -
Hi all, I was going to write this script for a friend that notifies him via logging onto his Gmail account and sending him an email to his work email about some events occurring in the execution of ...
Placid
Dec 12, 2006 at 4:16 am
Dec 15, 2006 at 1:19 am
Group Overview
group | python-list |
categories | python |
discussions | 721 |
posts | 4,401 |
users | 920 |
website | python.org |
920 users for December 2006
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)