[Twisted-Python] Problem w/ TNPE Example on Windows

Andrew Bennetts andrew-twisted at puzzling.org
Tue Dec 20 23:30:48 EST 2005


On Mon, Dec 19, 2005 at 01:19:34PM -0500, James Y Knight wrote:
> On Dec 19, 2005, at 11:23 AM, Abe Fettig wrote:
[...]
> >And unfortunately I failed to notice this while writing the book.
> >Apologies to Windows users. Is it really impossible to do asynchronous
> >IO on stdin/out on Windows? Anybody have any ideas for working around
> >the lack of fcntl? I'd be happy to contribute to an effort to make
> >twisted.internet.stdio run on Windows.
> 
> In the worst case, it could be emulated using threads doing blocking  
> read/write.

I think this is the simplest and most practical way to implement it on windows.
I suggest anyone interested in implementing it on windows tries this method.

-Andrew.





More information about the Twisted-Python mailing list