Message179181
| Author |
sbt |
| Recipients |
amaury.forgeotdarc, ezio.melotti, pitrou, santoso.wijaya, sbt, socketpair, vstinner |
| Date |
2013年01月06日.13:59:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1357480758.84.0.686871679817.issue12939@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|