Search Discussions
-
I'm pretty new to Python, and even newer to Image/Video processing, and trying to get started on a project similar to GRL Vienna's laser marker. I found some sample code here ...
Dongie Agnir
Jan 9, 2008 at 7:11 pm
Jan 17, 2008 at 12:53 am -
My expertise, if any, is in assembler. I'm trying to understand Python scripts and modules by examining them after they have been disassembled in a Windows environment. I'm wondering if a Python ...
Over
Jan 22, 2008 at 10:24 pm
Feb 11, 2008 at 1:45 pm -
There is a pattern that occurs fairly often in constructors in Python and other OOP languages. Let's take an example: class Server(object): def __init__(self, host, port, protocol, bufsize, timeout): ...
Coldpizza
Jan 27, 2008 at 5:06 pm
Jan 29, 2008 at 11:55 am -
Ever since I learnt to program I've always loved writing solvers for the Countdown numbers game problem in different languages, and so now I'm wondering what the most elegant solution in Python is. ...
Dg Google Groups
Jan 20, 2008 at 5:41 pm
Feb 17, 2008 at 10:19 pm -
A while back I came across a tentative proposal from way back in 2000 for optional static typing in Python: http://www.python.org/~guido/static-typing Two motivations were given: -- faster code -- ...
Russ P.
Jan 27, 2008 at 10:19 pm
Jan 30, 2008 at 2:18 pm -
Hi. I'd like to be able to write a loop such as: for i in range(10): pass but without the i variable. The reason for this is I'm using pylint and it complains about the unused variable i. I can ...
Erik gartz
Jan 9, 2008 at 10:25 pm
Jan 11, 2008 at 10:41 pm -
I want to generate sequential pairs from a list. Here is a way:: from itertools import izip, islice for x12 in izip(islice(x,0,None,2),islice(x,1,None,2)): print x12 (Of course the print statement is ...
Alan Isaac
Jan 22, 2008 at 3:20 am
Jan 24, 2008 at 10:23 am -
Hi, say I have a string like the following: s1 = 'hi_cat_bye_dog' and I want to replace the even '_' with ':' and the odd '_' with ',' so that I get a new string like the following: s2 = ...
Cesco
Jan 9, 2008 at 10:34 am
Jan 12, 2008 at 3:26 am -
This issue may have been referred to in news:<mailman.1864.1196703799.13605.python-list at python.org but I didn't entirely understand the explanation. Basically I have this: 6.0 nan 6.0 nan Before I ...
Albert Hopkins
Jan 21, 2008 at 3:15 am
Feb 4, 2008 at 7:37 pm -
I'm new to Python, and OOP. I've read most of Mark Lutz's book and more online and can write simple modules, but I still don't get when __init__ needs to be used as opposed to creating a class ...
Erik Lind
Jan 13, 2008 at 12:35 am
Jan 17, 2008 at 5:55 pm -
Hi Can anyone suggest a really simple XML reader for python? I just want to be able to do something like this: xmlDoc = xml.open("file.xml") element = xmlDoc.GetElement("foo/bar") ... to read the ...
Simon Pickles
Jan 27, 2008 at 5:35 pm
Feb 2, 2008 at 2:48 pm -
I'm a Java guy who's been doing Python for a month now and I'm convinced that 1) a multi-paradigm language is inherently better than a mono-paradigm language 2) Python writes like a talented figure ...
MartinRinehart
Jan 7, 2008 at 1:09 pm
Jan 15, 2008 at 5:53 pm -
Hello, I hope someone can illuminate this situation for me. Here's the nutshell: 1. On start I call locale.setlocale(locale.LC_ALL,''), the getlocale. 2. If this returns "C" or anything without ...
Donn Ingle
Jan 12, 2008 at 8:25 am
Jan 15, 2008 at 6:08 am -
Hello, This is a question for the best method (in terms of performance only) to choose a random element from a list among those that satisfy a certain property. This is the setting: I need to pick ...
Caca
Jan 4, 2008 at 7:55 pm
Jan 7, 2008 at 11:44 am -
Hi, I'm new to Python and have come across a problem I don't know how to solve, enter com.lang.python :) I'm writing some small apps to learn the language, and I like it a lot so far. My problem I've ...
Sacred Heart
Jan 17, 2008 at 12:21 pm
Jan 18, 2008 at 10:25 am -
Hello, In writing some non-trivial amount of Python code I keep running into an organizational issue. I will try to state the problem fairly generally, and follow up with a (contrived) example. The ...
Peter Schuller
Jan 23, 2008 at 9:49 am
Feb 4, 2008 at 10:46 pm -
I would value the opinion of fellow Pythoneers who have also contributed to Wikipedia, on the issue of "Is Python Standardized". Specifically in the context of this table: ...
Paddy
Jan 28, 2008 at 12:32 am
Feb 2, 2008 at 5:09 pm -
I use chinese charactors as an example here. "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" My first question is : what strategy does 'decode' use to tell the way to seperate the words. I mean since s1 is an ...
Glacier
Jan 24, 2008 at 3:49 am
Jan 28, 2008 at 11:10 am -
Hi all, I am newbie in Python, my wish would be to create python applications for both Linux/Win32. I am stucked on creating a function to get the Python install directory (and site-packages ...
Pythonewbie
Jan 20, 2008 at 11:03 am
Jan 21, 2008 at 11:14 am -
... if x == 3: ... a.remove(x) ... print x ... 1 2 3 5 [1, 2, 4, 5] Sure, the resulting list is correct. But 4 is never printed during the loop! What I was really trying to do was this: apps = [name ...
William McBrine
Jan 29, 2008 at 4:34 pm
Feb 1, 2008 at 5:22 pm -
I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming???? David Blubaugh -----Original Message----- From: ...
Blubaugh, David A.
Jan 31, 2008 at 12:40 am
Feb 2, 2008 at 12:14 pm -
Hello. I have a string like 'LNAME PASTA ZONE'. I want to create a list of those words and basically replace all the whitespace between them with one space so i could just do lala.split(). Thank you! ...
Ryan k
Jan 23, 2008 at 6:50 pm
Jan 24, 2008 at 3:30 pm -
Hi, I have a list of numbers each with a +/- margin of error. I need to identify which ones overlab each other. For example: 55 +/- 3 20 +/- 2 17 +/- 4 60 +/- 3 #base, max, min list = [ (55, 58, 52), ...
Erikcw
Jan 31, 2008 at 4:12 pm
Feb 8, 2008 at 4:06 pm -
given a list such as ['messages', 'recipients', 'viruses'] how would I iterate over the list and use the values as variables and open the variable names a files? I tried for outfile in ['messages', ...
BJ Swope
Jan 8, 2008 at 2:04 am
Jan 9, 2008 at 2:40 pm -
Hello all, For some reason, the following does not work : class C: TYPES = [None] DICT = {} for Type in TYPES: DICT.update((E,Type) for E in [1]) What do you think? Is this a bug?
Cptnwillard
Jan 17, 2008 at 3:05 pm
Jan 19, 2008 at 12:07 pm -
Hello, I saw this statement in Core Python Programming book, All arguments of function calls are made by reference, meaning that any changes to these parameters within the function affect the ...
J. Peng
Jan 16, 2008 at 3:09 am
Jan 16, 2008 at 3:52 pm -
Hello all, I am playing around w/ Python's object system and decorators and I decided to write (as an exercise) a decorator that (if applied to a method) would call the superclass' method of the same ...
Richard Szopa
Jan 12, 2008 at 6:45 pm
Jan 15, 2008 at 8:54 pm -
There's a lot of dumb stuff out there. "Algorithms should be coded efficiently ..." Thanks, I'll keep that in mind. van Rossum's guidelines tend toward "pick something and stick to it" which is OK if ...
MartinRinehart
Jan 7, 2008 at 1:25 pm
Jan 10, 2008 at 2:21 pm -
Hello all, I have an Unicode text file with 1.6 billon lines (~2GB) that I'd like to sort based on first two characters. I'd greatly appreciate if someone can post sample code that can help me do ...
Ira Kovac
Jan 24, 2008 at 7:18 pm
Feb 2, 2008 at 2:40 pm -
Working on parser for my language, I see that all classes (Token, Production, Statement, ...) have one thing in common. They all maintain start and stop positions in the source text. So it seems ...
MartinRinehart
Jan 5, 2008 at 10:31 am
Jan 21, 2008 at 5:26 pm -
Please, how to adapt the following script (to delete blank lines) to delete lines containing a specific word, or words? f=open("output.pdb", "r") for line in f: line=line.rstrip() if line: print line ...
Francesco Pietra
Jan 6, 2008 at 5:21 pm
Jan 7, 2008 at 12:43 pm -
I found a bug in my code today, and spent an hour trying to locate it and then minimize the testcase. Once I did it, I'm still confused about the behavior and I could not find any reference to this ...
Zbigniew Braniecki
Jan 18, 2008 at 5:09 pm
Jan 23, 2008 at 5:16 pm -
Any ideas for a thread-safe list.removeall( X ): removing all occurrences of X within list L, when L might be modified concurrently? Sincerely, Aaron
Castironpi
Jan 11, 2008 at 8:22 pm
Jan 12, 2008 at 10:41 pm -
As a Perl monkey in the process of learning Python, I just stepped on the "'1' (string) is not the same as 1 (integer) in regards to keys for dictionaries/hashes" landmine. Is there a good way to ...
Reedick, Andrew
Jan 3, 2008 at 10:56 pm
Jan 8, 2008 at 8:48 am -
Hi, (Gnu/Linux - Python 2.4/5) Given these two examples: 1. ./fui.py *.py 2. ls *.py | ./fui.py How can I capture a list of the arguments? I need to get all the strings (file or dir names) passed via ...
Donn Ingle
Jan 24, 2008 at 3:17 pm
Feb 1, 2008 at 10:34 am -
class genital: def pubic_hair(self): pass def remove(self): del(self.pubic_hair) "Removing pubic hair methods" xikom01 at yahoo.com.tw wrote: -- Posted via a free Usenet account from ...
Tobiah
Jan 29, 2008 at 7:48 pm
Jan 31, 2008 at 7:42 am -
I am using things like "%-20s%-60s%-10s" in tkinter listbox to make it look like a table, with mono sized font like lucie system. But this does not work with data contains "Les mis?rables", because ...
Peter Pei
Jan 27, 2008 at 3:58 am
Jan 27, 2008 at 5:14 pm -
I thought I would share this nasty little gotcha with the group. Consider the following code fragment: <start print 'starting kbd thread' keyboard_thread = thread.start_new_thread(kbd_driver ...
Hendrik van Rooyen
Jan 15, 2008 at 3:07 pm
Jan 18, 2008 at 7:23 am -
Hi All, I am trying to make a debian package. I am following the tutorial by Horst Jens (http://showmedo.com/videos/video?name=linuxJensMakingDeb&fromSeriesID7) and it is very informative. However ...
Jorgen Bodde
Jan 12, 2008 at 11:02 am
Jan 16, 2008 at 9:02 am -
Hi pals I have a list like this mylist=['','tom=boss','mike=manager','paul=employee','meaningless'] I'd like to remove the first and the last item as they are irrevalent, and convert it to the dict: ...
Louis Soninhu
Jan 9, 2008 at 6:56 pm
Jan 9, 2008 at 10:54 pm -
The annual Linux Journal survey is online now for any Linux users who want to vote for Python. http://www.linuxjournal.com/node/1006101
Dwblas
Jan 24, 2008 at 1:14 am
Feb 4, 2008 at 5:18 pm -
I apologize if this has already been discussed - funnily enough my googling did bring up a previous thread about it on this mailing list, but despite the promising subject line, seemed to mainly be ...
Henry Baxter
Jan 25, 2008 at 9:37 pm
Jan 27, 2008 at 1:02 pm -
Sorry for the noob question, but I've gone through the documentation on python.org, tried some of the diveintopython and boddie's examples, and looked through some of the numerous posts in this group ...
Alnilam
Jan 22, 2008 at 5:31 am
Jan 23, 2008 at 9:14 pm -
Hello, this question has come by repeatedly in several guises over the past years but has never been solved in this forum as far as I have been able to Google. However since so many people are asking ...
Paul Sijben
Jan 11, 2008 at 9:44 am
Jan 14, 2008 at 10:24 pm -
I'm learning Python by reading David Beazley's "Python Essential Reference" book and writing a few toy programs. To get a feel for hashes and sorting, I set myself this little problem today (not ...
Andrew Savige
Jan 9, 2008 at 10:58 am
Jan 11, 2008 at 5:11 pm -
So, in between skiing runs I noticed a Business Week cover story on "cloud computing". The article had lots of interesting information in it like about how somebody's mom used to be an airline ...
Aaron Watters
Jan 1, 2008 at 9:26 pm
Jan 5, 2008 at 10:27 am -
Hi all. I'm just getting introduced to Python (mostly through Dive Into Python), and I've decided to use it for a project where I have to write my own Genetic Algorithm. Even if you don't know about ...
Max
Jan 27, 2008 at 11:09 pm
Jan 28, 2008 at 10:34 pm -
I just thought python's way of assigning value to a variable is really different to other language like C,perl. :) Below two ways (python and perl) are called "pass by reference", but they get ...
J. Peng
Jan 17, 2008 at 3:34 am
Jan 22, 2008 at 12:23 pm -
I have three lists... for instance a = ['big', 'small', 'medium']; b = ['old', 'new']; c = ['blue', 'green']; I want to take those and end up with all of the combinations they create like the ...
Breal
Jan 16, 2008 at 7:15 pm
Jan 17, 2008 at 11:36 pm -
Hi, I'm a freshman in college and I'm going to be taking an intro to programming course next semester which mainly uses Python, so I thought it might be a good time to pick up Python beyond the scope ...
Landon
Jan 12, 2008 at 7:03 am
Jan 17, 2008 at 9:41 am
Group Overview
group | python-list |
categories | python |
discussions | 818 |
posts | 4,135 |
users | 895 |
website | python.org |
895 users for January 2008
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)