Author vstinner
Recipients amaury.forgeotdarc, socketpair, vstinner
Date 2011-09-08.23:19:00
SpamBayes Score 2.23822e-07
Marked as misclassified No
Message-id <1315523941.29.0.146575875409.issue12939@psf.upfronthosting.co.za>
In-reply-to
Content
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() :-)
History
Date User Action Args
2011-09-08 23:19:01vstinnersetrecipients: + vstinner, amaury.forgeotdarc, socketpair
2011-09-08 23:19:01vstinnersetmessageid: <1315523941.29.0.146575875409.issue12939@psf.upfronthosting.co.za>
2011-09-08 23:19:00vstinnerlinkissue12939 messages
2011-09-08 23:19:00vstinnercreate