Search Discussions
-
Hi everybody, I am an engineer. I am trying to improve my software development abilities. I have started programming with ruby. I like it very much but i want to add something more. According to my ...
Rushenaly
Feb 16, 2009 at 9:34 am
Mar 6, 2009 at 7:03 am -
Hi all what IDE is the best to write python? thanks from Peter (mcheung63 at hotmail.com)
Mcheung63
Feb 1, 2009 at 7:42 am
Feb 10, 2009 at 6:20 pm -
Hello everybody, Any better solution than this? def flatten(x): res = [] for el in x: if isinstance(el,list): res.extend(flatten(el)) else: res.append(el) return res a = [1, 2, 3, [4, 5, 6], [[7, 8], ...
Mk
Feb 5, 2009 at 1:17 pm
Feb 9, 2009 at 5:07 pm -
I mean this [code] def fib(n): if n<=1: return 1 return fib(n-1)+fib(n-2) useCore(1) timeit(fib(500)) #this show 20 seconds useCore(2) timeit(fib(500)) #this show 10 seconds [/code] Is it possible? ...
Oyster
Feb 10, 2009 at 6:28 am
Feb 23, 2009 at 9:32 am -
What's the Pythonic way to determine if a string is a number? By number I mean a valid integer or float. I searched the string and cMath libraries for a similar function without success. I can think ...
Python
Feb 15, 2009 at 5:46 pm
Feb 17, 2009 at 3:45 pm -
I'm using IDLE for editing, but execute programs directly. If there are execution or "compile" errors, the console closes before I can see what it contains. How do I prevent that? -- W. eWatson ...
W. eWatson
Feb 20, 2009 at 4:06 am
Jul 15, 2012 at 4:40 pm -
Hello. I've been scouring the web looking for something to clear up a little confusion about the use of "super()" but haven't found anything that really helps. Here's my simple example: class Parent: ...
Lionel
Feb 9, 2009 at 11:20 pm
Feb 11, 2009 at 4:52 am -
27
"Byte" type?
With "bytearray", the element type is considered to be "unsigned byte", or so says PEP 3137: "The element data type is always 'B' (i.e. unsigned byte)." Let's try: Python 2.6.1 (r261:67517, Dec 4 ...John Nagle
Feb 15, 2009 at 6:10 am
Mar 13, 2009 at 1:21 am -
I'm writing a little wiki that I call ?Wiki. That's a lowercase Greek mu at the beginning (it's pronounced micro-wiki). It's working, except that I can't actually enter the name of the wiki into the ...
Ron Garret
Feb 20, 2009 at 2:57 am
Feb 23, 2009 at 1:16 am -
Sometimes I really get confused when looking out for a modul for some kind of need. Sometimes I get frightened when I get the resaults. 8 wraper for this, 7 wrapers for that, 10 modules for anything. ...
Azrael
Feb 12, 2009 at 8:04 pm
Feb 14, 2009 at 5:41 am -
Hi, how is the rule in Python, if i pass objects to a function, when is this done by reference and when is it by value? def f1(a): a = 7 b = 3 f1(b) print b = 3 Integers are obviously passed by ...
Torsten Mohr
Feb 22, 2009 at 3:13 pm
Feb 24, 2009 at 2:19 pm -
Hi Folks, Python newbie here. I'm trying to open (for reading) a text file with the following filenaming convension: "MyTextFile.slc.rsc" My code is as follows: Filepath = "C:\\MyTextFile.slc.rsc" ...
Lionel
Feb 2, 2009 at 6:36 pm
Feb 3, 2009 at 10:27 pm -
Hi. This must be a simple command but I just can't find it in the Phthon manual. How do I delete all items with a certain condition from a list? For instance: L=['a', 'b', 'c', 'a'] I want to delete ...
Clarendon
Feb 26, 2009 at 11:05 am
Feb 28, 2009 at 5:46 pm -
It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over pyWin, that ...
W. eWatson
Feb 12, 2009 at 12:43 pm
Feb 15, 2009 at 12:09 am -
I used a CPD (copy/paste detector) in PMD to analyze the code duplication in Python source code. I found that Python3.0 contains more duplicated code than the previous versions. The CPD tool is far ...
Terry
Feb 7, 2009 at 5:50 am
Feb 8, 2009 at 11:21 pm -
Do to laking knowledge my google searches have not turned up an answer for me. I know this is wrong it uses the items in the list as the filename, how do I refer to the dataname and not the items in ...
Vincent Davis
Feb 4, 2009 at 4:24 pm
Feb 6, 2009 at 1:03 am -
I need to test strings to determine if one of a list of chars is in the string. A simple example would be to test strings to determine if they have a vowel (aeiouAEIOU) present. I was hopeful that ...
Python
Feb 16, 2009 at 5:17 am
Feb 22, 2009 at 12:53 am -
Dear Community Now I'm standing here, having this great idea for a brand new rocking app... But where do I start? I want it to be multi-platform (Linux, Mac OS X, Windows). It should be easy to ...
Marcel Luethi
Feb 22, 2009 at 10:55 am
Mar 29, 2009 at 10:51 pm -
Choosing the right data structure is usually a matter of compromises, and sometimes the best you can do is to change some data structures and look for the faster running time. To do this it helps to ...
BearophileHUGS
Feb 5, 2009 at 9:47 am
Feb 8, 2009 at 11:31 pm -
Hello all, It has long been my dream to create an open source 3D CAD program and i am starting to crawl my way into the first steps. I now believe i am ready to start this endeavor and i am currently ...
Rantingrick
Feb 9, 2009 at 8:58 pm
Mar 17, 2009 at 6:29 pm -
hello, I often get an error message like this self.Brick.Par [ self.EP[2] ]['FileName'] = filename IndexError: list index out of range Now it would be very welcome, if the error message specified ...
Stef Mientki
Feb 22, 2009 at 1:43 pm
Mar 15, 2009 at 11:32 pm -
So, we think something is working and send of a bug fix to our client :) I'm not sure I understand this at all and wonder if there is bug? 'c:\\Program Files\\test' so far, so good. 'c:\\Program ...
Bvdp
Feb 23, 2009 at 10:05 pm
Feb 24, 2009 at 9:13 pm -
Hi. Does anyone know how to scan a file character by character and have each character so I can put it into a variable. I am attempting to make a chatbot and need this to read the saved input to look ...
Spacebar265
Feb 5, 2009 at 6:48 am
Feb 22, 2009 at 3:21 pm -
I would have thought that the answer would be: the default encoding (duh!) But empirically this appears not to be the case: Traceback (most recent call last): File "<stdin ", line 1, in <module ...
Ron Garret
Feb 20, 2009 at 7:48 pm
Feb 21, 2009 at 8:48 pm -
Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, ...
David Sevilla
Feb 3, 2009 at 9:24 pm
Feb 17, 2009 at 7:25 pm -
Can Python's serial port support be made to run at 45.45 baud, the old "60 speed" Teletype machine speed? I've restored a Model 15 teletype from WWII. Works great after cleaning, oiling, and ...
John Nagle
Feb 14, 2009 at 4:27 pm
Feb 16, 2009 at 4:49 am -
(duck) 542 comp.lang.python rtfm 467 comp.lang.python shut+up 263 comp.lang.perl rtfm 45 comp.lang.perl shut+up Code: import urllib2 import re import time def fillurlfmt(args): urlfmt, ggroup, gkw = ...
Mk
Feb 5, 2009 at 4:00 pm
Feb 7, 2009 at 3:00 pm -
Hello all: I've crafted several classes and exceptions which I've stored in a file called "DataFileType.py". I then invoke them from within other files like this: # Top of file import sys ...
Lionel
Feb 20, 2009 at 11:33 pm
Mar 13, 2009 at 7:44 pm -
Here's a proposed implementation for Py2.7 and Py3.1: http://code.activestate.com/recipes/576669/ Would like you guys to kick the tires, exercise it a bit, and let me know what you think. The recipe ...
Raymond Hettinger
Feb 26, 2009 at 9:12 am
Mar 1, 2009 at 3:12 pm -
anyone interested in looking at the following problem. we are trying to express numbers as minimal expressions using only the digits one two and three, with conventional arithmetic. so for instance ...
Trip Technician
Feb 20, 2009 at 2:31 pm
Feb 27, 2009 at 4:49 am -
I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth ...
Thomas Allen
Feb 17, 2009 at 9:46 pm
Feb 19, 2009 at 7:58 pm -
Hi, I had python 2.5 installed on my Mac osx 10.4.11 and idle stopped opening and running after I ran a few programs. I installed python 2.6 hoping this would allow me to open idle and start learning ...
Kevin hayes
Feb 21, 2009 at 12:52 am
Mar 2, 2009 at 10:29 pm -
Dear python-list, I'm having some trouble decoding an email header using the standard imaplib.IMAP4 class and email.message_from_string method. In particular, email.message_from_string() does not ...
Roy H. Han
Feb 25, 2009 at 12:07 am
Feb 25, 2009 at 6:59 pm -
Hi all, I'm quite new to python as I've only just started to learn about it a few days ago... I am trying to do something and after reading about it, I'm still not sure whether or not it can be done. ...
Ray
Feb 2, 2009 at 7:05 am
Feb 10, 2009 at 4:13 pm -
After reading the docs and seeing a few examples i think this should work ? Am I forgetting something here or am I doing something stupid ? Anyway I see my yellow screen, that has to count for ...
Gert
Feb 17, 2009 at 4:55 pm
Mar 27, 2009 at 8:35 am -
I started learning Java for fun, and the first project assignment in the book is to create a game like "Battleship." So, of course, I wrote it in Python first, just for fun. I haven't had the time to ...
Shawn Milochik
Feb 25, 2009 at 4:29 pm
Mar 26, 2009 at 7:24 pm -
Hello all, I'm currently writing a Python <- MATLAB interface with ctypes and array.array class, using which I'll need to push large amounts of data to MATLAB. Everything is working well, but there ...
Maxim Khitrov
Feb 19, 2009 at 6:52 pm
Mar 12, 2009 at 12:48 am -
Hi, I have a class derived from two parents (in blue below), which gives me the following error: $ python -u ./failover_pickle_demo09.py Traceback (most recent call last): File ...
Barak, Ron
Feb 19, 2009 at 1:01 pm
Feb 23, 2009 at 5:29 pm -
Hi, I am building some computational web services using soaplib. This creates a WSGI application. However, since some of these services are computationally intensive, and may be long running, I was ...
Robin
Feb 11, 2009 at 9:50 am
Feb 12, 2009 at 10:08 am -
Hi I have a list of Records with some details.(more than 15 million records) with duplication I need to iterate through every record and need to eliminate duplicate records. Currently i am using a ...
Shanmuga Rajan
Feb 26, 2009 at 8:37 pm
Mar 3, 2009 at 9:09 pm -
Hi all, Recently I am studying some python ORM libraries, such as sqlalchemy. These are very powerful technologies to handle database. But I think my project are not complicated to enough to benefit ...
一首诗
Feb 17, 2009 at 12:27 pm
Feb 26, 2009 at 12:19 pm -
My program in IDLE bombed with: ============== Exception in Tkinter callback Traceback (most recent call last): File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__ return ...
W. eWatson
Feb 11, 2009 at 4:28 pm
Feb 15, 2009 at 12:53 pm -
15
x64 speed
Whilst doing some portability testing with reportlab I noticed a strange speedup for our unittest suite with python2.5 host win32 xp3 unittest timeB.2 seconds vmware RHEL x64 unittest time0.9 seconds ...Robin Becker
Feb 3, 2009 at 5:36 pm
Feb 5, 2009 at 10:12 am -
Dear all, I'd like to know how to elegantly check a list for the membership of any of its items to another list. Not caring for elegance, I would use the following code: blah = [1,2,3] yadda = ...
Inkhorn
Feb 1, 2009 at 7:54 pm
Feb 2, 2009 at 10:40 pm -
I'm having some problems with the memory recycling/garbage collecting of the following testing code: This takes 635m/552m/2044 memory (VIRT/RES/SHR) ... b[str(i)]=i Then the memory usage increased to ...
Yuanxin Xi
Feb 17, 2009 at 5:21 am
Feb 26, 2009 at 6:40 pm -
Hello, everybody. I have this signature-changing decorator <http://paste.chrisarndt.de/paste/15aac02a90094a41a13a1b9b85a14dd6 which I want to turn into a signature-preserving one. Here's my try ...
Gustavo Narea
Feb 13, 2009 at 11:56 pm
Feb 16, 2009 at 4:58 pm -
Having issue on Windows cmd. This gives a unicode error. Works fine in IDLE, PythonWin, and my Macbook but I need to run this from a windows batch. Character should look like this "?". Please help!
Jeffg
Feb 11, 2009 at 6:35 pm
Feb 12, 2009 at 4:16 am -
What are your thoughts on this module I created? ''' A Python Module created by a High School Student. Includes rev(), reet(), and leet(). Import nift Function: nift.rev() Description: Reverses a ...
J
Feb 8, 2009 at 6:42 pm
Feb 10, 2009 at 8:55 pm -
Hey, I have a log file that doesn't contain the word "Haskell" at all, I'm just trying to do a little performance comparison: ++++++++++++++ from datetime import time, timedelta, datetime start = ...
Hussein B
Feb 1, 2009 at 11:22 am
Feb 2, 2009 at 9:55 pm -
How do I achieve something like this using python ? spaces = (form.has_key('spaces') ? form.getvalue('spaces') == 1 ? True : False : False) spaces = True if form.getvalue('spaces') == 1 if ...
Anjanesh Lekshminarayanan
Feb 27, 2009 at 3:11 am
Mar 4, 2009 at 12:07 am
Group Overview
group | python-list |
categories | python |
discussions | 683 |
posts | 3,952 |
users | 775 |
website | python.org |
775 users for February 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)