Search Discussions
-
109
list index()
What's with the index() function of lists throwing an exception on not found? Let's hope this is rectified in Python 3. If nothing else, add a function that doesn't throw an exception. There are a ...Zzbbaadd
Aug 30, 2007 at 6:44 am
Sep 5, 2007 at 6:35 am -
I just stumbled onto PEP 316: Programming by Contract for Python (http://www.python.org/dev/peps/pep-0316/). This would be a great addition to Python, but I see that it was submitted way back in ...
Russ
Aug 29, 2007 at 1:04 am
Sep 2, 2007 at 6:19 pm -
Hello, I have a simple question. Say you have the following function: def f(x, y = []): y.append(x) return y print f(23) # prints [23] print f(42) # prints [23, 42] As far as I understand, the ...
Lee Fleming
Aug 6, 2007 at 6:50 am
Aug 13, 2007 at 11:44 pm -
Like in math where you put letters that represent numbers for place holders to try to find the answer type complex numbers? An HTML attachment was scrubbed... URL: ...
Lamonte Harris
Aug 31, 2007 at 1:11 am
Sep 9, 2007 at 11:29 am -
Hello, While I don't pretend to be an authority on the subject, a few days of research has lead me to believe that a discussion needs to be started (or continued) on the state and direction of ...
Justin T.
Aug 10, 2007 at 10:01 am
Aug 23, 2007 at 12:58 am -
Hall?chen! Some LaTeX users in Aachen thought about a general-use markup language this spring. I wrote some code and a rough project description, however, we could need some help. If you are ...
Torsten Bronger
Aug 23, 2007 at 5:29 pm
Sep 1, 2007 at 10:58 pm -
hello, I discovered that boolean evaluation in Python is done "fast" (as soon as the condition is ok, the rest of the expression is ignored). Is this standard behavior or is there a compiler switch ...
Stef Mientki
Aug 2, 2007 at 9:47 pm
Aug 6, 2007 at 7:44 am -
Would someone like to suggest a replacement for this? It works ok, but it doesn't look like any of the other code: tempList = ['1','2','3','4','5','6','7','8'] sampleList=[] for port in tempList: ...
Bambam
Aug 23, 2007 at 9:45 am
Aug 27, 2007 at 6:44 pm -
True False Why? Thanks, Dick Moores
Dick Moores
Aug 9, 2007 at 5:38 pm
Aug 12, 2007 at 5:22 pm -
I'm surprised to read this: http://en.wikipedia.org/wiki/Python_3 """Note that while there is no explicit requirement that code be able to run unmodified in both versions, in practice it is quite ...
John J. Lee
Aug 5, 2007 at 5:52 pm
Aug 10, 2007 at 8:28 am -
Hello list: I have tried various times to use an IDE for python put have always been disapointed. I haven't revisited the idea in about a year and was wondering what the python people use. I have ...
Joel Andres Granados
Aug 21, 2007 at 10:00 am
Aug 30, 2007 at 9:51 am -
I'd like to refresh the display before I start the main loop. I have code like this: app = App() app.Show() app.long_slow_init() app.MainLoop() The main frame partly loads at Show, but because the ...
David
Aug 9, 2007 at 5:25 am
Aug 21, 2007 at 8:10 am -
Hi All. I'd like to do the following in more succint code: if k in b: a=b[k] else: a={} b[k]=a a['A']=1 In perl it is just one line: $a=$b- {"A"} ||={}. Thanks, Geoffrey
Beginner
Aug 16, 2007 at 10:35 pm
Aug 18, 2007 at 12:41 pm -
Hi, I have read the source code of the built-in random module, random.py. After also reading Wiki article on Knuth Shuffle algorithm, I wonder if the shuffle method implemented in random.py produces ...
Tooru honda
Aug 24, 2007 at 7:38 am
Sep 10, 2007 at 7:52 am -
Hi, i have strings which look like money values (ie 34.45) is there a way to convert them into float variables? everytime i try I get this error: "numb = float(my_line) ValueError: empty string for ...
Luca bertini
Aug 30, 2007 at 2:14 pm
Sep 1, 2007 at 4:28 am -
Hi, I've been very confused about why this doesn't work. I mean I don't see any reason why this has been made not to work. class Log: def __init__(self, verbose, lock = None): if verbose is True: ...
Ritesh Raj Sarraf
Aug 10, 2007 at 9:53 pm
Aug 16, 2007 at 5:25 pm -
Hi all. I guess i have a conceptual question: Im planing using a quite simple decorator to be used as a conditional for the execution of the function. I mean something like that: @is_logued_in def ...
Gerardo Herzig
Aug 16, 2007 at 8:16 pm
Sep 3, 2007 at 11:40 am -
Hi all, I need to do syntax parsing of simple naturual languages, for example, "weather of London" or "what is the time", simple things like these, with Unicode support in the syntax. In Java, there ...
Jack
Aug 18, 2007 at 10:22 pm
Aug 27, 2007 at 2:36 pm -
Reviews of latest models of best guitars, fender, gibson, yamaha, and many more, with pictures and prices. http://pro-guitars.blogspot.com/ And if you want to win a free guitar go here ...
Mobilendd
Aug 19, 2007 at 5:34 pm
Aug 21, 2007 at 9:30 pm -
Hello, What would be the best cross-platform GUI library to use for a vector based CAD program ( something like Visio on Windows ) WxWidgets, Tk, PyQt, Java Swing, Java SWT,???? I need the capibility ...
Chewie54
Aug 17, 2007 at 1:27 pm
Aug 20, 2007 at 8:37 pm -
This is probably a simple code. I am a truck driver who gets paid by stops and cases. I am trying to figure out how to code my stop pay. I get 40 cents per stop up to 22 stops, and $1.40 per stops ...
HD1956
Aug 20, 2007 at 2:23 pm
Aug 21, 2007 at 6:25 pm -
Hi All, This is just a very simple question about a python trick. In perl, I can write __END__ in a file and the perl interpreter will ignore everything below that line. This is very handy when ...
Beginner
Aug 1, 2007 at 3:53 am
Aug 2, 2007 at 10:07 pm -
Wingware <info at wingware.com wrote in news:46AF8ED7.2070206 at wingware.com: There is one feature that I would like to suggest: open module in project. Currently you need to Navigate inside the ...
Alex Popescu
Aug 1, 2007 at 12:10 am
Aug 2, 2007 at 5:26 pm -
Hi, I'm trying to create a tar file of the contents of the current directory right now there is only one file "text.xml" in the current dir, I'm using"." current dir as source but that gives syntax ...
Brian McCann
Aug 23, 2007 at 5:27 pm
Aug 24, 2007 at 6:54 pm -
Hi, this is actually a question to those of us who use Eclipse and Pydev as their main Python developing environment. As i use Eclipse (3.3 Europa) only for Python and i have nothing to do with Java, ...
King kikapu
Aug 3, 2007 at 2:58 pm
Aug 14, 2007 at 8:11 am -
"simply indispensable", I don't know. FWIW, most of the features of Python are not "simply indispensable" !-) Most of what you can do with a callable instance can be done with closures (and is ...
Bruno Desthuilliers
Aug 2, 2007 at 2:30 pm
Aug 3, 2007 at 11:23 pm -
Hi, does anyone have a good example of how to read a line in a file? say you have a file build.log and in the file are values like buildnum = 1 date = 20070820 I know how to read the contents and ...
Brian McCann
Aug 20, 2007 at 5:10 pm
Aug 21, 2007 at 1:53 pm -
After a fair amount of troubleshooting of why my lists were coming back a handful of digits short, and the last digit rounded off, I determined the str() function was to blame: 0.0071299720384678782 ...
Adam W.
Aug 11, 2007 at 4:40 pm
Aug 16, 2007 at 4:51 pm -
Hello, I'm new to this group, I've read through the subject of a lot of the group but can't find anything relevant. Perhaps my question is too basic but I'm still stuck. Classes and Dictionaries. If ...
Special_dragonfly
Aug 9, 2007 at 8:22 am
Aug 11, 2007 at 5:10 am -
Hello All, Say I have this code: import AModule import ModuleUser ModuleUser.do_something_with(AModule, 'some_function_name') But say the functions are defined in the same module that contains the ...
James Stroud
Aug 4, 2007 at 12:22 am
Aug 4, 2007 at 10:07 am -
Hello everyone. I've searched through the archives here, and it seems that questions similar to this one have come up in the past, but I was hoping that I could pick your Pythonic brains a bit. ...
Jeff
Aug 29, 2007 at 4:07 am
Sep 4, 2007 at 11:29 pm -
Important Research Project (Related to computer programming) Posted by E.D.G. on August 30, 2007 edgrsprj at ix.netcom.com This report is being posted to a number of Internet Newsgroups to see if ...
E.D.G.
Aug 30, 2007 at 1:12 pm
Sep 2, 2007 at 1:50 am -
When I create a subfolder, python is not seeing it. Can someone please explain this behaviour ? I just started with python, read the tutorial over the weekend and am writing my very first script. So ...
Mr_gadget
Aug 30, 2007 at 8:30 am
Aug 31, 2007 at 12:57 pm -
For reasons that I won't explain, as they are too complicated and not terribly relevant, I am interested in discovering what people actually use regular expressions for. Not the subject domain, but ...
Nick Maclaren
Aug 24, 2007 at 10:58 am
Aug 25, 2007 at 2:29 pm -
I have a huge log file which contains 3,453,299,000 lines with different lengths. It is not possible to calculate the absolute position of the beginning of the one billionth line. Are there efficient ...
Sullivan WxPyQtKinter
Aug 8, 2007 at 6:23 am
Aug 12, 2007 at 12:50 pm -
newbie question: Is there a 'K&R" type of Python book? The book that you'd better have on your shelf if you are going into Python?
Dhr
Aug 4, 2007 at 1:23 pm
Aug 8, 2007 at 5:32 pm -
Could anyone put me on the right track to developing Python with emacs please : modes to consider, debugging etc hopefully all within emacs. Any help and shared experiences much appreciated.
Hadron
Aug 1, 2007 at 2:37 pm
Aug 8, 2007 at 1:37 am -
For a file hashing system (finding similar files, rather than identical ones), I need to be able to efficiently and quickly sum the ordinals of the bytes of a file and their squares. Because of the ...
Erik Max Francis
Aug 12, 2007 at 9:26 am
Aug 19, 2007 at 12:55 am -
I've got a wxPython program that needs to do some drawing on a DC on a regular basis, whether or not a paint event happens. I know how to make a ClientDC to do the drawing in, and I know what drawing ...
Matt Bitten
Aug 10, 2007 at 1:46 am
Aug 13, 2007 at 10:44 pm -
Hello I'm trying to chain two programs with a pipe (the output of one feeding the input of the other). I managed to capture the output and feeding the input of each program independently with popen, ...
Avishay
Aug 21, 2007 at 10:09 pm
Aug 28, 2007 at 11:18 pm -
To become part of a larger script that will read through all files on a given drive, I was playing around with reading files and wanted to see if there was an optimum value for a read size on my ...
Signal
Aug 21, 2007 at 4:06 am
Aug 22, 2007 at 11:58 am -
Hello all. I realize that proposals dealing with alternatives to indentation have been brought up (and shot down) before, but I would like to take another stab at it, because it is rather important ...
Aaron
Aug 18, 2007 at 6:22 pm
Aug 21, 2007 at 4:45 pm -
Hi folks, I am currently using Eclipse+PyDev when developping Python projects but I lack a fast, simple editor for tiny bit of scripts. So here is my question: what is, for you, the current best ( ...
Sébastien
Aug 19, 2007 at 9:47 am
Aug 20, 2007 at 6:18 pm -
Hi all, I'm generating a binding from Python to C using SWIG. On the C side I have iterators over some data structures. On the Python side I currently use code like the following: def get_data(obj): ...
Stefan Bellon
Aug 7, 2007 at 10:28 pm
Aug 12, 2007 at 4:06 am -
Hi, I've been looking at stackless python a little bit, and it's awesome. My question is, why hasn't it been integrated into the upstream python tree? Does it cause problems with the current ...
Justin T.
Aug 9, 2007 at 9:00 am
Aug 10, 2007 at 6:41 pm -
i dont know how to convert a txt file into a zip file (i.e.,)i have a file named packages and i want the packages file with a ".gz" extension by implementing a python program
Cool Vimalsmail
Aug 2, 2007 at 9:31 am
Aug 3, 2007 at 6:02 pm -
Rise up and shine, white sons and daughters Rise up and shine, you gotta fight to part those waters When we swim in the light, all will be okay The black, yellow and brown man will wash away. ...
Nenad Milicevic - The Aryan Serb
Aug 27, 2007 at 7:13 am
Sep 6, 2007 at 5:24 am -
# using old-style classes: import new def repmeth( self ): print "repmeth" class CC: def __init__( self ): self.m1 = new.instancemethod(repmeth, self, type(self)) print 'Hello from init' def m1 ( ...
Bruno Desthuilliers
Aug 22, 2007 at 5:30 am
Aug 27, 2007 at 3:07 pm -
I'd appreciate opinions about this new Python book. Title: Python Power!: The Comprehensive Guide Author: Matt Telles Publisher: Course Technology Pub. Date: Jul 27, 2007 Edition: 1st edition ...
Dick Moores
Aug 14, 2007 at 12:05 pm
Aug 17, 2007 at 3:47 pm -
Hi, I just started with python, and have a for loop question In c++ (or a number of other languages) I can do this: for (int i=0, j=0; i < i_len, j< j_len; ++i, ++j) {} If I have this in python: l = ...
Bryan
Aug 14, 2007 at 4:22 pm
Aug 15, 2007 at 6:22 pm
Group Overview
group | python-list |
categories | python |
discussions | 773 |
posts | 4,147 |
users | 967 |
website | python.org |
967 users for August 2007
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)