2013/8/21 Guido van Rossum <guido at python.org>: > Since this is a new API and only applies to sockets, making them methods > sounds good. (I'd put the 'nt' test outside the method defs though so they > are tested only once per import.) I added get_inheritable() and set_inheritable() methods to socket.socket. The names are PEP 8 compliant, whereas socket.socket.getblocking() and socket.socket.settimeout() are not :-) So we have 4 new functions and 2 new methods just to get and set the inheritable attribute :-) http://www.python.org/dev/peps/pep-0446/#new-functions-and-methods We might remove os.get/set_handle_inheritable() from the PEP 446, if they are not really useful. Victor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4