2013/8/21 Guido van Rossum <gu...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com