This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients amaury.forgeotdarc, ezio.melotti, pitrou, santoso.wijaya, sbt, socketpair, vstinner
Date 2013-01-06.21:30:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwaP+sjsN60itwE3Bts2z=qMCoNJqbzrfACbTS86g4dtPA@mail.gmail.com>
In-reply-to <1357480758.84.0.686871679817.issue12939@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
History
Date User Action Args
2013-01-06 21:30:46vstinnersetrecipients: + vstinner, amaury.forgeotdarc, pitrou, ezio.melotti, santoso.wijaya, socketpair, sbt
2013-01-06 21:30:46vstinnerlinkissue12939 messages
2013-01-06 21:30:45vstinnercreate