Re: [Twisted-Python] async->sync

2011-09-26 Thread Phil Mayers
On 23/09/11 20:33, gary jefferson wrote: > So, am I missing some other more elegant solution? Is there really no > way to turn async, deferred-returning twisted code into synchronous > result-returning code, via clever use of wrappers etc? Run the reactor in another thread, or another process and

Re: [Twisted-Python] async->sync

2011-09-23 Thread Glyph Lefkowitz
On Sep 23, 2011, at 3:33 PM, gary jefferson wrote: > So, am I missing some other more elegant solution? Is there really no > way to turn async, deferred-returning twisted code into synchronous > result-returning code, via clever use of wrappers etc? Run the reactor in a background thread and do .

[Twisted-Python] async->sync

2011-09-23 Thread gary jefferson
I know this is a topic that comes up occasionally, and every thread I've see ends the same way: don't try it. Here's my problem. I am trying to integrate some async twisted code with pyfilesystem. Methods in pyfilesystem, such as listdir() and open() that I need to implement expect synchronous res