On Apr 10, 3:05 pm, svensven <[EMAIL PROTECTED]> wrote:
> Vinay Sajip wrote:
>
> > On Apr 10, 1:11 pm, "sven _" <[EMAIL PROTECTED]> wrote:
> >> My goal is to have stdout and stderr written to a logginghandler.
> >
> > Thomas was almost right, but not quite - you can't call info on a
> > Handle
logging.DEBUG)
s = subprocess.Popen( ['ls','-la'], stdout=subprocess.PIPE )
while 1:
ch.info( s.stdout.readline() )
if s.poll() == None:
break
Perhaps not the most efficient or clean solution, but that is how I
usually do it (note: I didn't test the above code).
-Thomas Dimson
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 9, 1:24 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 8 Apr 2008 16:49:27 -0700 (PDT), Thomas Dimson
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>
> > I assume there is some issue with the global interpreter lo
_run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.4/threading.py", line 634, in __exitfunc
t.join()
File "/usr/lib/python2.4/threading.py", line 532, in join
assert self is not currentThread(), "cannot join current thread"
AssertionError
On Apr 2, 10:31 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Apr 2, 8:30 am, Thomas Dimson <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hello,
>
> > Originally I posted this as a bug but it was shot down pretty quickly.
> > I am stil
the "call=DecorateMe.callMe" to "call=lambda x:
DecorateMe.callMe(x)" everything goes along its merry way. Nesting the
call in a lambda seems to allow it to recognize the class definition.
Any ideas as to what is going on here (other than ugly code)?
Thank you,
Thomas Dimson
--
http://mail.python.org/mailman/listinfo/python-list