python 2.x and running shell command

2009-12-24 Thread Boris Arloff
>On Dec 23, 5:22 pm, Sean DiZazzo wrote: > On Dec 23, 1:57 pm, tekion wrote: > > > > > All, > > some of the servers I have run python 2.2, which is a drag because I > > can't use subprocess module.  My options that I know of is popen2 > > module.  However, it seems it does not have io blocking >

PYO versus PYC Behavior

2009-12-24 Thread Boris Arloff
All python docs and description indicate that optimization (-OO) does not do much anything except the removal off pydoc. A single "O" removes comments and asserts, and with the removal of pydoc with double "O" option the *.pyo byte compile is left with pure executable code.  I am experiencing a

SocketServer

2009-10-12 Thread Boris Arloff
This may not be the correct list for this issue, if so I would appreciate if anyone could forward it to the correct list.   I had experienced a number of problems with standard library SocketServer when implementing a tcp forking server under python 2.6.  I fixed every issue including some timin

Re: The rap against "while True:" loops

2009-10-10 Thread Boris Arloff
I agree there is no rap against "while True"-loops.  As an example these are very useful especially when receiving continuous data over a queue, pipe socket, or over any other connection.  You set to block, receive data, then process data and finally loop around to wait for next data segment.  O

Trying to get ABC to work

2009-08-03 Thread Boris Arloff
y I could define an abstract method within a metaclass and have it behave with abstraction when the class is created off the metaclass?   I other words, I want to force an implementation of cls_abc() method when MyKlass(object): __metaclass__ = MetaExample is declared, or else get NotImplement

Metaclasses Demystified

2009-06-10 Thread Boris Arloff
Hi, I have been studying python metaclasses for a few days now and I believe that slowly but surely I am grasping the subject.  The best article I have found on this is "Metaclass Demystified", by J. LaCour, Python Magazine, July 2008 (http://cleverdevil.org/computing/78/). I replicated the ar