On 09/25/2011 11:46 PM, Bastien ROUCARIES wrote:
Did you seehttp://bugs.python.org/issue4804 ?
Particularlyhttp://bugs.python.org/file12953/__pioinfo.patch
A little bit hackhish but seems to work
That would provide a lot more flexibility, including:
* the ability to implement O_INHERIT (i.e. O_CLOEXEC) correctly
* the ability to reimplement open and friends using the underlying NTDLL
functions (Unicode-friendly, >260 characters per path, etc.)
* the ability to use _free_osfhnd in the close module
However, it is bad that these data structures can change for every
version of MSVC. At some point, you have to balance flexibility and
maintainability.
Paolo