Re: [Tutor] Problems with a Class

2007-01-12 Thread Bob Gailer
Carlos wrote: > Hello, > > I'm just about to finish my project, but something is causing me > trouble. I need to find out how to get some information out of the > genetic algorithm that Im using. This algorithm is generating some > coordinates for a collection of objects, until now I needed only

Re: [Tutor] Psyco Puzzle

2007-01-12 Thread Dick Moores
At 01:31 PM 1/12/2007, Dick Moores wrote: At 06:16 AM 1/12/2007, Adam Bark wrote: On 11/01/07, Danny Yoo < [EMAIL PROTECTED]> wrote: > Sometimes psyco speeds up a script by a factor of 10, and sometimes > it makes no difference at all. Here's a case where I fully expected > it to make a differ

Re: [Tutor] Problems with a Class

2007-01-12 Thread Carlos
Hi, Just in case that the info that I provided is not enough, I posted the code in a python forum, hope that somebody can take a look. http://python-forum.org/py/viewtopic.php?p=11063#11063 Regards, Carlos ___ Tutor maillist - Tutor@python.org http:

[Tutor] Problems with a Class

2007-01-12 Thread Carlos
Hello, I'm just about to finish my project, but something is causing me trouble. I need to find out how to get some information out of the genetic algorithm that Im using. This algorithm is generating some coordinates for a collection of objects, until now I needed only the final result of the

[Tutor] ANN: Python training course, Feb 7-9, San Francisco

2007-01-12 Thread wesley chun
FINAL REMINDER... we still have some seats left! What: (Intensive) Intro to Python When: February 7-9, 2007 Where: San Francisco (SFO/San Bruno), CA, USA Web:http://cyberwebconsulting.com (click "Python Training" link) Need to get up-to-speed with Python as quickly as possible? Come join

Re: [Tutor] Psyco Puzzle

2007-01-12 Thread Dick Moores
At 01:31 PM 1/12/2007, Dick Moores wrote: >But another question. I tried testing just my function fact() (see < >http://www.rcblue.com/Python/Psyco_Puzzle.txt>) using timeit.py's >template, with and without psyco. Without psyco I used >= >def inner(_it, _timer): >

Re: [Tutor] Psyco Puzzle

2007-01-12 Thread Dick Moores
At 06:16 AM 1/12/2007, Adam Bark wrote: On 11/01/07, Danny Yoo < [EMAIL PROTECTED]> wrote: > Sometimes psyco speeds up a script by a factor of 10, and sometimes > it makes no difference at all. Here's a case where I fully expected > it to make a difference: > < http://www.rcblue.com/Python

Re: [Tutor] more fun and games with padded numbers

2007-01-12 Thread Kent Johnson
Terry Carroll wrote: > On Fri, 12 Jan 2007, Kent Johnson wrote: > >> I just want to highlight that your code uses lstrip(), not strip(). > > Oops. I didn't even notice that. I'll take it as a good sign that I'm > finally getting comfortable in Python that I instinctively used it without > real

Re: [Tutor] more fun and games with padded numbers

2007-01-12 Thread Terry Carroll
On Fri, 12 Jan 2007, Kent Johnson wrote: > I just want to highlight that your code uses lstrip(), not strip(). Oops. I didn't even notice that. I'll take it as a good sign that I'm finally getting comfortable in Python that I instinctively used it without realizing it. __

Re: [Tutor] 'root' dir of a package from within the package ?

2007-01-12 Thread Dave S
On Tuesday 09 January 2007 10:55, Michael Lange wrote: > On Mon, 8 Jan 2007 19:24:37 + > > Dave S <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I have written a python package, which works fine, the 'root' directory > > is 'my_app' with sub directories within in, complete with there > > __init

Re: [Tutor] urlretrieve

2007-01-12 Thread Kent Johnson
Ron Nixon wrote: > Is there a way to get the urlretrive module to grab multiple files > similar to wget? I'm not familiar enough with wget to know exactly what you are looking for. urllib.urlretrieve() just grabs a single file. If you want a bunch of named files, just put it in a loop. If you a

[Tutor] urlretrieve

2007-01-12 Thread Ron Nixon
Is there a way to get the urlretrive module to grab multiple files similar to wget? Ron Nixon Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevent

Re: [Tutor] Psyco Puzzle

2007-01-12 Thread Adam Bark
On 11/01/07, Danny Yoo <[EMAIL PROTECTED]> wrote: > Sometimes psyco speeds up a script by a factor of 10, and sometimes > it makes no difference at all. Here's a case where I fully expected > it to make a difference: > . Whether using psyco > or n

Re: [Tutor] openssl 0.9.7l for i686,python:need help

2007-01-12 Thread Christopher Arndt
sonia agarwal schrieb: > I am trying to download files from a network element whose IP > address,username and password is the only thing i know to establish an > SFTP connection using python script.I have found that I need to use > M2Crypto package which in turn requires openssl 0.9.7l or newer. >

Re: [Tutor] more fun and games with padded numbers

2007-01-12 Thread Kent Johnson
John Fouhy wrote: > On 12/01/07, Christopher Spears <[EMAIL PROTECTED]> wrote: >> At first I used strip(), which was a mistake because >> it removed all the zeroes. > > Are you sure? If you used .replace('0', '') it would remove all the > zeros. But this is what strip is for. > lst = ['000

[Tutor] openssl 0.9.7l for i686,python:need help

2007-01-12 Thread sonia agarwal
Hi I am trying to download files from a network element whose IP address,username and password is the only thing i know to establish an SFTP connection using python script.I have found that I need to use M2Crypto package which in turn requires openssl 0.9.7l or newer. I am unable to download