[Python-checkins] peps: PEP 446: Windows creates non-inheritable *handles* (not fds)

victor.stinner python-checkins at python.org
Wed Aug 7 01:43:22 CEST 2013


http://hg.python.org/peps/rev/36674bbbb2c7
changeset:   5038:36674bbbb2c7
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Aug 07 01:41:46 2013 +0200
summary:
  PEP 446: Windows creates non-inheritable *handles* (not fds)

files:
  pep-0446.txt |  9 +++++----
  1 files changed, 5 insertions(+), 4 deletions(-)


diff --git a/pep-0446.txt b/pep-0446.txt
--- a/pep-0446.txt
+++ b/pep-0446.txt
@@ -32,10 +32,11 @@
 -------------------------------
 
 Each operating system handles the inheritance of file descriptors
-differently. Windows creates non-inheritable file descriptors by
-default, whereas UNIX creates inheritable file descriptors by default.
-Python prefers the POSIX API over the native Windows API to have a
-single code base, and so it creates inheritable file descriptors.
+differently. Windows creates non-inheritable handles by default, whereas
+UNIX and the POSIX API of Windows create inheritable file descriptors by
+default. Python prefers the POSIX API over the native Windows API to
+have a single code base and to use the same type for file descriptors,
+and so it creates inheritable file descriptors.
 
 There is one exception: ``os.pipe()`` creates non-inheritable pipes on
 Windows, whereas it creates inheritable pipes on UNIX.  The reason is an

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list