[Python-Dev] PEP 446: Open issues/questions (original) (raw)
Victor Stinner victor.stinner at gmail.com
Fri Aug 2 13:23:11 CEST 2013
- Previous message: [Python-Dev] PEP 446: Open issues/questions
- Next message: [Python-Dev] PEP 446: Open issues/questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le 2 août 2013 08:32, "Charles-François Natali" <cf.natali at gmail.com> a écrit :
2013/8/2 Victor Stinner <victor.stinner at gmail.com>: > 2013/7/28 Antoine Pitrou <solipsis at pitrou.net>: >>> (A) How should we support support where os.setinheritable() is not >>> supported? Can we announce that os.setinheritable() is always >>> available or not? Does such platform exist? >> >> FDCLOEXEC 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 HANDLEFLAGINHERIT.) > > If we cannot answer to my question, it's safer to leave > os.get/setinheritable() optional (need hasattr in tests for example). On Unix platforms, you should always have FDCLOEXEC. If there were such a platform without FD inheritance support, then it would probably make sense to make it a no-op
Ok, and os.get_inheritable() can also always return False.
It would prefer to fail with a compiler error is the platform is unknown. A platform might support FD inheritance, but with something different than fcntl() or ioctl() (ex: Windows).
Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130802/3a6d327e/attachment.html>
- Previous message: [Python-Dev] PEP 446: Open issues/questions
- Next message: [Python-Dev] PEP 446: Open issues/questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]