[Python-checkins] peps: PEP 446: avoid "clear the flag" expression
victor.stinner
python-checkins at python.org
Mon Aug 26 12:02:21 CEST 2013
http://hg.python.org/peps/rev/3253786f0a06
changeset: 5073:3253786f0a06
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Aug 26 12:01:16 2013 +0200
summary:
PEP 446: avoid "clear the flag" expression
files:
pep-0446.txt | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pep-0446.txt b/pep-0446.txt
--- a/pep-0446.txt
+++ b/pep-0446.txt
@@ -497,22 +497,22 @@
* ``os.get_inheritable(fd: int)``: return ``True`` if the file
descriptor can be inherited by child processes, ``False`` otherwise.
-* ``os.set_inheritable(fd: int, inheritable: bool)``: clear or set the
+* ``os.set_inheritable(fd: int, inheritable: bool)``: set the
inheritable flag of the specified file descriptor.
New functions only available on Windows:
* ``os.get_handle_inheritable(handle: int)``: return ``True`` if the
handle can be inherited by child processes, ``False`` otherwise.
-* ``os.set_handle_inheritable(handle: int, inheritable: bool)``: clear
- or set the inheritable flag of the specified handle.
+* ``os.set_handle_inheritable(handle: int, inheritable: bool)``:
+ set the inheritable flag of the specified handle.
New methods:
* ``socket.socket.get_inheritable()``: return ``True`` if the
socket can be inherited by child processes, ``False`` otherwise.
-* ``socket.socket.set_inheritable(inheritable: bool)``: clear
- or set the inheritable flag of the specified socket.
+* ``socket.socket.set_inheritable(inheritable: bool)``:
+ set the inheritable flag of the specified socket.
Other Changes
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list