[Python-Dev] PEP 446: Open issues/questions

Victor Stinner victor.stinner at gmail.com
Fri Aug 2 02:27:43 CEST 2013


2013/7/28 Antoine Pitrou <solipsis at pitrou.net>:
>> (A) How should we support support where os.set_inheritable() is not
>> supported? Can we announce that os.set_inheritable() is always
>> available or not? Does such platform exist?
>
> FD_CLOEXEC is POSIX:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html

Ok, but this information does not help me. Does Python support
non-POSIX platforms? (Windows has HANDLE_FLAG_INHERIT.)

If we cannot answer to my question, it's safer to leave
os.get/set_inheritable() optional (need hasattr in tests for example).

Victor


More information about the Python-Dev mailing list