Re: First practical Python code, comments appreciated

2005-12-14 Thread Kent Johnson
planetthoughtful wrote: > Hi All, > > I've written my first piece of practical Python code (included below), > and would appreciate some comments. My situation was that I had a > directory with a number of subdirectories that contained one or more > zip files in each. Many of the zipfiles had the

Re: First practical Python code, comments appreciated

2005-12-14 Thread Steve Holden
Paul McGuire wrote: [...] > portability is an n-way street. +1 QOTW regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/pytho

Re: First practical Python code, comments appreciated

2005-12-14 Thread Steve Holden
Paul McGuire wrote: [...] > portability is an n-way street. +1 QOTW regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://mail.python.org/mailman/listinfo/pytho

Re: First practical Python code, comments appreciated

2005-12-14 Thread planetthoughtful
Thanks to both Steve and Paul! I actually come from a PHP background, and I'm learning Python, oddly enough, as a result of recently purchasing a USB Flash Drive, and through wanting to be able to carry a portable programming language on the drive so that I have the capability of developing / usin

Re: First practical Python code, comments appreciated

2005-12-14 Thread Paul McGuire
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That form is non-portable. You might argue "I'm never going to run this > program on anything other than Windows", and indeed for throwaway > programs it's often easier to write something non-portable. It's > surprising, t

Re: First practical Python code, comments appreciated

2005-12-14 Thread Steve Holden
planetthoughtful wrote: > Hi All, > > I've written my first piece of practical Python code (included below), > and would appreciate some comments. My situation was that I had a > directory with a number of subdirectories that contained one or more > zip files in each. Many of the zipfiles had the

First practical Python code, comments appreciated

2005-12-14 Thread planetthoughtful
Hi All, I've written my first piece of practical Python code (included below), and would appreciate some comments. My situation was that I had a directory with a number of subdirectories that contained one or more zip files in each. Many of the zipfiles had the same filename (which is why they had