[issue12939] Add new io.FileIO using the native Windows API

Richard Oudkerk report at bugs.python.org
Sat Jan 12 16:13:31 CET 2013


Richard Oudkerk added the comment:

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)

----------
Added file: http://bugs.python.org/file28707/winfileio.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12939>
_______________________________________


More information about the Python-bugs-list mailing list