[Twisted-Python] Problem w/ TNPE Example on Windows
James Y Knight
foom at fuhm.net
Mon Dec 19 13:19:34 EST 2005
On Dec 19, 2005, at 11:23 AM, Abe Fettig wrote:
> Andrew Bennetts wrote:
>>> Reading the python documentation states that the "fcntl" module is
>>> available on
>>> Unix only. - Does that mean, that this example is working on Unix
>>> only or
>>> what am I missing?
>> That's right, unfortunately. That example uses the
>> module, which relies on fcntl (and the ability to pass the stdin/
>> stdout file
>> descriptors to select), which isn't available on Windows.
> 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
More information about the Twisted-Python