Re: [Tutor] List indexing problem

2008-07-26 Thread Kent Johnson
On Fri, Jul 25, 2008 at 7:35 PM, Mike Meisner [EMAIL PROTECTED] wrote: Do you happen to know if there is an efficient way to initialize a list like this without explicitly writing out each element? You can make a copy of the inner list each time through the loop: IP = [] temp = [[0, 0,

Re: [Tutor] List indexing problem

2008-07-26 Thread Kent Johnson
On Fri, Jul 25, 2008 at 8:20 PM, Michiel Overtoom [EMAIL PROTECTED] wrote: Mike wrote... Do you happen to know if there is an efficient way to initialize a list like this without explicitly writing out each element? temp = [[0, 0, 0],[0, 0, 0],[0, 0, 0]] print temp [[0, 0, 0], [0, 0, 0],

Re: [Tutor] Online class/education for Python?

2008-07-26 Thread wesley chun
I have the first edition of Python Programming for the Absolute Beginner. Will this work instead of the 2nd edition? i just found out from bookpool today that the 2nd edition is now also out-of-print. does anyone know if a 3rd edition is being worked on? -- wesley - - - - - - - - - - - - - -

[Tutor] (no subject)

2008-07-26 Thread amit sethi
hi, Can somebody tell me about tools to convert stereo mp3 signal to mono wave signal . I tried using pymedia but i am not able to understand how to convert stereo signal to a mono signal . -- A-M-I-T S|S ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Online class/education for Python?

2008-07-26 Thread Dick Moores
At 01:43 AM 7/26/2008, wesley chun wrote: I have the first edition of Python Programming for the Absolute Beginner. Will this work instead of the 2nd edition? i just found out from bookpool today that the 2nd edition is now also out-of-print. But:

[Tutor] Unable to Reconfigure IDLE

2008-07-26 Thread Thomas Corbett
Running IDLE 1.2.2 under MacPython 2.5 on Mac OS X 5.1. Configured shell window to wrong size, now can't seem to find the menu (Options Configure) to resize the shell. Tried going to username Library Preferences and removing org.python* files, but that did not work. Thanks!

Re: [Tutor] Unable to Reconfigure IDLE

2008-07-26 Thread Alan Gauld
Thomas Corbett [EMAIL PROTECTED] wrote Configured shell window to wrong size, now can't seem to find the menu (Options Configure) to resize the shell. Don't you just resize it then close it and the next time it opens it uses the new size? Thats how I thought it was supposed to work! Alan

Re: [Tutor] where to report a bug?

2008-07-26 Thread Rick Pasotto
On Fri, Jul 25, 2008 at 03:11:57PM -0700, Dave Kuhlman wrote: On Fri, Jul 25, 2008 at 10:04:35AM -0400, Rick Pasotto wrote: I have a script that works fine on my linux machine but bombs out when run under windows using the exact same data files. The script downloads a file then unzips it

Re: [Tutor] Online class/education for Python?

2008-07-26 Thread wesley chun
On Sat, Jul 26, 2008 at 7:11 AM, Dick Moores [EMAIL PROTECTED] wrote: At 01:43 AM 7/26/2008, wesley chun wrote: I have the first edition of Python Programming for the Absolute Beginner. Will this work instead of the 2nd edition? i just found out from bookpool today that the 2nd edition

[Tutor] urllib2 and php authentication

2008-07-26 Thread Daniele
Hi, I'm trying to connect to a site that requires a php login. I used the urllib2 module in the following way: import urllib2 user='xxx' password='yyy' hp = urllib2.HTTPPasswordMgr() uri = 'http://s2.ikariam.it/index.php?action=loginAvatarfunction=login' hp.add_password(None, uri, user,

Re: [Tutor] urllib2 and php authentication

2008-07-26 Thread W W
On Sat, Jul 26, 2008 at 7:31 PM, Daniele [EMAIL PROTECTED] wrote: Hi, I'm trying to connect to a site that requires a php login. I used the urllib2 module in the following way: It requires a php login, or php handles the login? import urllib2 user='xxx' password='yyy' hp =

Re: [Tutor] Unable to Reconfigure IDLE

2008-07-26 Thread Thomas Corbett
On Jul 26, 2008, at 9:02 AM, Alan Gauld wrote: Thomas Corbett [EMAIL PROTECTED] wrote Configured shell window to wrong size, now can't seem to find the menu (Options Configure) to resize the shell. Don't you just resize it then close it and the next time it opens it uses the new size?