[Python-Dev] PEP 446: issue with sockets

Victor Stinner victor.stinner at gmail.com
Wed Aug 21 03:01:17 CEST 2013

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 :-)

We might remove os.get/set_handle_inheritable() from the PEP 446, if
they are not really useful.


More information about the Python-Dev mailing list