[Python-Dev] PEP 446: issue with sockets (original) (raw)
Victor Stinner victor.stinner at gmail.com
Wed Aug 21 03:01:17 CEST 2013
- Previous message: [Python-Dev] PEP 446: issue with sockets
- Next message: [Python-Dev] PEP 446: issue with sockets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 446: issue with sockets
- Next message: [Python-Dev] PEP 446: issue with sockets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]