Search Discussions
-
Ok, just looking for a sanity check here, or maybe something I'm missing. I have a class Test, for example: class Test: def __init__(self, param1, param2, param3): self.param1 = param1 self.param2 = ...
T
Feb 8, 2010 at 1:05 am
Feb 23, 2010 at 6:24 pm -
Hi all, a company that works with my company writes a lot of of their code in Python (lucky jerks). I've seen their code and it basically looks like this: """Function that does stuff""" def ...
Andreas Waldenburger
Feb 24, 2010 at 8:23 pm
Mar 12, 2010 at 1:49 am -
Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility. http://blog.extracheese.org/2010/02/python-vs-ruby-a-battle-to-the-death.html -- ...
Casey Hawthorne
Feb 16, 2010 at 6:38 pm
Feb 23, 2010 at 7:09 pm -
Hello, I am sitting here for quite some time, but usually keep silent ;-) I use Python since 2003 both "professionally" and for my hobby projects and love it a much. I notice however, that ...
Vladimir Ignatov
Feb 3, 2010 at 11:10 am
Mar 15, 2010 at 1:41 pm -
That will be superb -- Passion is my style An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20100222/f9a67813/attachment.html
AON LAZIO
Feb 22, 2010 at 9:56 pm
Feb 26, 2010 at 7:28 pm -
Hello, I need to generate passwords and I think that pseudo-random generator is not good enough, frankly. So I wrote this function: import struct def gen_rand_string(): fileobj = ...
Mk
Feb 23, 2010 at 2:36 pm
Mar 3, 2010 at 3:15 pm -
I just spent about 1-1/2 hours tracking down a bug. An innocuous little script, let's call it buggy.py, only 10 lines long, and whose output should have been, at most two lines, was quickly dumping ...
Kj
Feb 2, 2010 at 2:34 am
Feb 5, 2010 at 9:48 pm -
To all, I am running an EDI translator, and doing stress tests. When processing a test with a (relatively) big EDI file(s) on windowsXP I get a crash: 'sorry for the inconvenience' etc (so no clues ...
Hjebbers
Feb 11, 2010 at 2:32 pm
Feb 15, 2010 at 11:39 am -
Hello, I've asked this question at stackoverflow a few weeks ago, and to make it clear: this should NOT be a copy of the stackoverflow-thread "hidden features of Python". I want to design a poster ...
Julian
Feb 4, 2010 at 11:03 pm
Feb 11, 2010 at 1:34 pm -
*Sorry by this message off topic, but this is too important* Fascism is coming fastly to Internet because is the only communication way that governements (managed by the bank and multinationals) ...
Joan Miller
Feb 23, 2010 at 10:54 am
Feb 27, 2010 at 8:50 pm -
hello people, i have been reading posts on this group for quite some time now and many, if not all (actually not all!), seem quite interesting. i plan to build an application, a network based ...
Simn_stv
Feb 25, 2010 at 10:26 am
Mar 4, 2010 at 3:29 pm -
This has to be a stupid question, but :) I have some generators that do stuff, then start yielding results. On occasion, I don't want them to yield anything ever-- they're only really "generators" ...
Stephen Hansen
Feb 18, 2010 at 10:25 pm
Feb 24, 2010 at 11:36 pm -
I am pleased to announce the first public release of obfuscate 0.2.2a. http://pypi.python.org/pypi/obfuscate/0.2.2a obfuscate is a pure-Python module providing classical encryption algorithms ...
Steven D'Aprano
Feb 8, 2010 at 11:46 pm
Feb 12, 2010 at 3:39 pm -
I have been using Python for several years now and have never run into memory errors? until now. My Python program now consumes over 2 GB of memory and then I get a MemoryError. I know I am reading ...
Jeremy
Feb 11, 2010 at 11:39 pm
Feb 14, 2010 at 7:04 pm -
I'm pleased to announce DreamPie 1.0 - a new graphical interactive Python shell! Some highlights: * Has whatever you would expect from a graphical Python shell - attribute completion, tooltips which ...
Noam Yorav-Raphael
Feb 21, 2010 at 9:42 am
Mar 22, 2010 at 11:17 pm -
Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and ...
W. eWatson
Feb 22, 2010 at 3:22 pm
Feb 25, 2010 at 5:44 am -
In the beginning, Python had some types which were "frozen", and some which weren't. Now, there's a trend towards having both "frozen" and "unfrozen" versions of built-in types. We now have "frozen" ...
John Nagle
Feb 16, 2010 at 8:15 pm
Feb 24, 2010 at 6:31 am -
Hello, I am writing a program that analyzes files of different formats. I would like to use a function for each format. Obviously, functions can be mapped to file formats. E.g. like this: if ...
Klaus Neuner
Feb 8, 2010 at 10:57 am
Feb 10, 2010 at 2:49 pm -
Out of curiosity I tried this and it actually worked as expected: x=[] foo=x.append def f(self): return self.x [] [1] At first I thought "hehe, always fun to play around with python. Might be useful ...
Michael Rudolf
Feb 28, 2010 at 12:38 pm
Mar 21, 2010 at 11:28 pm -
s = f.readline() if 'mystring' in s: print 'foundit' if 'mystring' not in s: print 'not found' if 'mystring' in s: print 'processing' this generates output: not found processing so, it doesn't find ...
Quin
Feb 9, 2010 at 9:00 pm
Feb 10, 2010 at 9:57 pm -
I have a web-page where each row in a grid has edit/delete buttons to enable the user to maintain a selected record on another page. The buttons are in the form of a link with href='/item_edit?id3', ...
Alan Harris-Reid
Feb 3, 2010 at 6:01 pm
Feb 5, 2010 at 3:29 am -
Hi everyone, What is the simplest way to access the attributes of a function from inside it, other than using its explicit name? In a function like f below: def f(*args): f.args = args print args is ...
Muhammad Alkarouri
Feb 10, 2010 at 1:59 pm
Feb 14, 2010 at 9:32 pm -
Can someone explain to me what python is doing here? Python 3.1.1 (r311:74480, Feb 3 2010, 13:36:47) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. ...
Terrence Cole
Feb 11, 2010 at 12:44 am
Feb 27, 2010 at 8:46 pm -
Hi, I am a fresh man with python. I know there is regular expressions in Python. What I need is that given a particular regular expression, output all the matches. For example, given ?[1|2|3]{2}? as ...
Hzhuo1
Feb 6, 2010 at 7:36 pm
Feb 8, 2010 at 10:19 am -
This is a short complaint on admin abuse on #python irc channel on freenode.net. Here's a log: 2010-02-02 (12:11:57 PM) The topic for #python is: NO LOL | http://pound-python.org/ ...
Xah Lee
Feb 2, 2010 at 8:40 pm
Feb 8, 2010 at 5:23 am -
Hi, This morning I am working though Building Skills in Python and was having problems with string.strip. Then I found the input file I was using was in DOS format and I thought it be best to convert ...
@ Rocteur CC
Feb 27, 2010 at 9:36 am
Mar 12, 2010 at 2:13 pm -
Hi, I have two dicts n={'a', 'm', 'p'} v={1,3,7} and I'd like to have a=1 m=3 p=7 that is, creating some variables. How can I do this?
Vsoler
Feb 23, 2010 at 8:53 pm
Feb 28, 2010 at 7:22 am -
Hi, What is the best way with python to get a list of all windows services. As a start I would be glad to receive only the service names. However it would be nicer if I could get all the properties ...
News123
Feb 16, 2010 at 12:04 am
Feb 17, 2010 at 2:29 pm -
Does Python provide a way to format a string according to a 'picture' format? For example, if I have a string '123456789' and want it formatted like '(123)-45-(678)[9]', is there a module or function ...
Python
Feb 10, 2010 at 4:45 am
Feb 10, 2010 at 9:55 pm -
Pythonistas: Yes, calling os.path.walk() and os.path.join() all the time on raw strings is fun, but I seem to recall from my Ruby days a class called Pathname, which presented an object that behaved ...
Phlip
Feb 3, 2010 at 10:47 pm
Mar 16, 2010 at 5:00 pm -
Hello! I am newbie mastering test driven development. I can't clarify myself which mock library to use. There are number of them and which one do you prefer? Two libraries that attracted my attention ...
Lacrima
Feb 15, 2010 at 4:15 pm
Mar 3, 2010 at 8:47 pm -
I have lots of data that I currently store in dictionaries. However, the memory requirements are becoming a problem. I am considering using a database of some sorts instead, but I have never used ...
Jeremy
Feb 26, 2010 at 3:58 pm
Feb 27, 2010 at 2:21 am -
Some people have mathphobia. I'm developing a wicked case of Unicodephobia. I have read a *ton* of stuff on Unicode. It doesn't even seem all that hard. Or so I think. Then I start writing code, and ...
Kj
Feb 10, 2010 at 7:09 pm
Feb 13, 2010 at 5:48 am -
Hello How can I do something similar to pure virtual functions in C++ ? Let us consider this: class C1: # Pure virtual def cb(self, param1, param2): """ This is a callback @param param1: ... @param ...
Lallous
Feb 20, 2010 at 4:12 pm
Feb 25, 2010 at 8:32 pm -
Hello, I recently read about augmented assignments and that (with l1, l2 being lists) l1.extend(l2) is more efficient than l1 = l1 + l2 because unnecessary copy operations can be avoided. Now my ...
Marwie
Feb 21, 2010 at 12:55 am
Feb 22, 2010 at 5:15 am -
I know there's a performance penalty for running Python on a multicore CPU, but how bad is it? I've read the key paper ("www.dabeaz.com/python/GIL.pdf"), of course. It would be adequate if the GIL ...
John Nagle
Feb 2, 2010 at 11:02 pm
Feb 21, 2010 at 10:39 pm -
I have a script, which runs as a Windows service under the LocalSystem account, that I wish to have execute some commands. Specifically, the program will call plink.exe to create a reverse SSH ...
T
Feb 7, 2010 at 7:02 pm
Feb 13, 2010 at 6:36 am -
Hello everyone, OK so I have this: def print_internal_date(filename): f = open(filename + 'c', "rb") data = f.read(8) mtime = struct.unpack("<i", data[4:]) return time.asctime(time.gmtime(mtime[0])) ...
Mk
Feb 17, 2010 at 5:38 pm
Feb 18, 2010 at 1:34 pm -
Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of ...
Echavarria Gregory, Maria Angelica
Feb 13, 2010 at 12:21 am
Feb 15, 2010 at 3:39 am -
Given 'n' circles and the co-ordinates of their center, and the radius of all being equal i.e. 'one', How can I take out the intersection of their area. hope the picture makes it clear ...
Shashwat Anand
Feb 4, 2010 at 10:39 am
Feb 5, 2010 at 8:49 am -
Hey all, I've been working on a program that accesses my school's password protected website and downloads directory names. I'm using mechanize. Recently, the program has been unable to open the ...
MattB
Feb 19, 2010 at 9:48 pm
Feb 25, 2010 at 11:58 am -
What's the correct way to measure small periods of elapsed time. I've always used time.clock() in the past: start = time.clock() [stuff being timed] stop = time.clock() delta = stop-start However on ...
Grant Edwards
Feb 9, 2010 at 4:10 pm
Feb 24, 2010 at 5:32 pm -
I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is ...
Bryan
Feb 22, 2010 at 4:32 pm
Feb 22, 2010 at 11:34 pm -
Hello, i am trying to develop an application to teach programming to young kids in a similar way as Logo did in the past. I would like to use an embedded Python as underlying language but this raises ...
Luca
Feb 25, 2010 at 3:26 pm
Feb 26, 2010 at 9:30 pm -
Hello everyone, I'm getting an exception (on socket) handled in a program I'm trying to debug. I have trouble locating where exactly that happens. In such situation turning exception handling off ...
Mk
Feb 11, 2010 at 4:17 pm
Feb 12, 2010 at 1:53 pm -
Just trying to delve into the CPython source code. Pleasant surprise: while e.g. the gcc compiler is written in K&R C (1975 style C), CPython seems to be written in almost modern C (1989 and on). ...
Alf P. Steinbach
Feb 6, 2010 at 8:31 pm
Feb 7, 2010 at 11:55 pm -
[1, 2] [1, 2] Whoah! Are python lists only for literals? Nope: [{}, {}] [{'x': 1}, {}] So it looks like variables in a list are stored as object references. This seems to confirm that: ...
Michael Pardee
Feb 21, 2010 at 3:25 am
Feb 26, 2010 at 8:44 pm -
I think I remember, early in my learning of Python, coming across the commandment "THOU SHALT NOT USE TRIPLE-QUOTES TO COMMENT-OUT LINES OF CODE", or something to that effect. But now I can't find ...
Kj
Feb 24, 2010 at 6:18 pm
Feb 26, 2010 at 11:52 am -
I've successfully compiled several small python programs on Win XP into executables using py2exe. A program goes from a name like snowball.py to snowball. A dir in the command prompt window finds ...
W. eWatson
Feb 19, 2010 at 11:20 am
Feb 21, 2010 at 12:56 am
Group Overview
group | python-list |
categories | python |
discussions | 472 |
posts | 3,456 |
users | 580 |
website | python.org |
580 users for February 2010
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)