Message179809
| Author |
sbt |
| Recipients |
amaury.forgeotdarc, ezio.melotti, pitrou, santoso.wijaya, sbt, socketpair, vstinner |
| Date |
2013年01月12日.15:13:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1358003611.6.0.311089904397.issue12939@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Attached is a new patch which is implemented completely in C.
It adds a WinFileIO class to the io module, which has the same API
as FileIO except that:
* It has a handle attribute instead of a fileno() method.
* It has staticmethods openhandle() and closehandle() which are
analogues of os.open() and os.close().
The patch also adds a keyword-only "rawfiletype" argument to
io.open() so that you can write
f = open("somefile", "w", rawfiletype=WinFileIO) |
|