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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12939>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to