Message179229
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" <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue12939>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2013-01-06 21:30:46 | vstinner | set | recipients:
+ vstinner, amaury.forgeotdarc, pitrou, ezio.melotti, santoso.wijaya, socketpair, sbt |
2013-01-06 21:30:46 | vstinner | link | issue12939 messages |
2013-01-06 21:30:45 | vstinner | create | |
|