New submission from STINNER Victor <victor.stin...@haypocalc.com>:

On Windows, Python uses the POSIX API (file descriptors), instead of the native 
API (file handles). Some features cannot be used using the POSIX API, like 
setting security attributes. It would be nice to have a io.FileIO using Windows 
file handlers to get access to all Windows features. It would help feature 
#12105 to implement "O_CLOEXEC" flag using the lpSecurityAttributes argument.

We can maybe try with a prototype written in Python. Using _pyio.RawIOBase, 
only readinto(), write(), seek() and truncate() have to be implemented. But it 
is better to implement also close() :-)

----------
components: IO, Unicode
messages: 143741
nosy: amaury.forgeotdarc, haypo, mmarkk
priority: normal
severity: normal
status: open
title: Add new io.FileIO using the native Windows API
versions: Python 3.3

_______________________________________
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