[Twisted-Python] Wrapping blocking code

Justin Johnson justinjohnson at fastmail.fm
Fri Jul 25 11:39:34 MDT 2003


Thanks much.  Yes this works.

Can someone else comment on the stability of win32eventreactor, given the
deprecation warnings I'm getting?

-Justin

On Fri, 25 Jul 2003 12:53:31 -0400, "Bob Ippolito" <bob at redivi.com> said:
> 
> On Friday, Jul 25, 2003, at 11:42 America/New_York, Justin Johnson 
> wrote:
> 
> > reason is an Exception from twisted.internet.error.  It is an instance 
> > of
> > ProcessDone if it completes successfully.  How can this be called?  
> > When
> > I was using the other process.py module, it allowed me to get stdout,
> > stderr, and the status.  That is really all I want to do.  So it seems
> > like stdout and stderr are easy to get with the xxxReceived methods, 
> > and
> > then the status would have to be determined from the type of exception
> > processEnded gets as the "reason" argument, right?
> 
> This is untested, since I don't have a windows box around.. didn't 
> check for syntax errors.. but I believe this will do what you want it 
> to do:
> 




More information about the Twisted-Python mailing list