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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue