Richard Oudkerk added the comment:

Attached is a patch which adds a winio module which is a replacement for io, 
but uses windows handles instead of fds.

It reimplements FileIO and open(), and provides openhandle() and closehandle() 
as replacements for os.open() and os.close().

test_io has been modified to exercise winio (in addition to _io and _pyio) and 
all the tests pass.

Note that some of the implementation (openhandle(), open(), FileIO.__init__()) 
is still done in Python rather than C.

----------
keywords: +patch
Added file: http://bugs.python.org/file28590/winfileio.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12939>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to