PEP 446: avoid "clear the flag" expression
This commit is contained in:
parent
c3e6947b82
commit
bca9fd02fc
10
pep-0446.txt
10
pep-0446.txt
|
@ -497,22 +497,22 @@ New functions available on all platforms:
|
||||||
|
|
||||||
* ``os.get_inheritable(fd: int)``: return ``True`` if the file
|
* ``os.get_inheritable(fd: int)``: return ``True`` if the file
|
||||||
descriptor can be inherited by child processes, ``False`` otherwise.
|
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.
|
inheritable flag of the specified file descriptor.
|
||||||
|
|
||||||
New functions only available on Windows:
|
New functions only available on Windows:
|
||||||
|
|
||||||
* ``os.get_handle_inheritable(handle: int)``: return ``True`` if the
|
* ``os.get_handle_inheritable(handle: int)``: return ``True`` if the
|
||||||
handle can be inherited by child processes, ``False`` otherwise.
|
handle can be inherited by child processes, ``False`` otherwise.
|
||||||
* ``os.set_handle_inheritable(handle: int, inheritable: bool)``: clear
|
* ``os.set_handle_inheritable(handle: int, inheritable: bool)``:
|
||||||
or set the inheritable flag of the specified handle.
|
set the inheritable flag of the specified handle.
|
||||||
|
|
||||||
New methods:
|
New methods:
|
||||||
|
|
||||||
* ``socket.socket.get_inheritable()``: return ``True`` if the
|
* ``socket.socket.get_inheritable()``: return ``True`` if the
|
||||||
socket can be inherited by child processes, ``False`` otherwise.
|
socket can be inherited by child processes, ``False`` otherwise.
|
||||||
* ``socket.socket.set_inheritable(inheritable: bool)``: clear
|
* ``socket.socket.set_inheritable(inheritable: bool)``:
|
||||||
or set the inheritable flag of the specified socket.
|
set the inheritable flag of the specified socket.
|
||||||
|
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
|
|
Loading…
Reference in New Issue