STINNER Victor added the comment: I don't like the idea of a specific I/O module for an OS. Is the public API different? Can't you reuse the io module? Le 6 janv. 2013 14:59, "Richard Oudkerk" <rep...@bugs.python.org> a écrit :
> > 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 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