Re: One class per file?

2008-09-29 Thread George Boutsioukis
On Mon, 29 Sep 2008 06:12:35 -0700, HCB wrote: > Hello: > > The book "Code Complete" recommends that you put only one class in a > source file, which seems a bit extreme for me. It seems that many > classes are small, so that putting several of them in a file seems > reasonable. I noticed that th

Re: Using the 'with' statement with cStringIO objects

2008-09-27 Thread George Boutsioukis
> So, I'm guessing you can't use the 'with' statement with cStringIO > objects? Is this a bug, or do I need to use the 'with' statement > differently to get this to work? > > Thanks, > peppergrower Neither, just not implemented. Only classes with __enter__ and __exit__ methods(ie context manag

Re: python for *nix system admins

2008-09-27 Thread George Boutsioukis
On Sat, 27 Sep 2008 10:05:01 +0200, Lars Stavholm wrote: > Hi All, > > I'm new to this list and hoping that this is not off-topic. If it is, > please point me in the right direction. > > I seem to recollect a python module or library for *nix sysadmins, but I > can't for the life of me find it a