Re: Aaaargh! "global name 'eggz' is not defined"

2009-11-03 Thread Singletoned
On Oct 30, 8:53 am, Bruno Desthuilliers wrote: > Robert Kern a écrit :> On 2009-10-29 16:52 PM, Aahz wrote: > (snip) > >> Coincidentally, I tried PyFlakes yesterday and was unimpressed with the > >> way it doesn't work with "import *". > > > I consider "import *" the first error to be fixed, so it

Re: ls files --> list packer

2006-02-24 Thread Singletoned
Try using The Path module: http://www.jorendorff.com/articles/python/path/. I wrote a little script to traverse a directory structure which you could use. (You just pass a function to it and it runs it on each file in the directory. You want it to run on each directory instead, so I've changed i

Re: how to use more than 1 __init__ constructor in a class ?

2005-06-23 Thread Singletoned
Rocco Moretti wrote: > Steven D'Aprano wrote: > > That's the joys of a mostly self-taught programming knowledge: you miss > > out on all the buzzwords. > > Being mostly self taught myself, I have a tendancy to use infrequently > encountered terms in related but technically inappropriate contexts,