A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-August/128052.html below:

[Python-Dev] PEP 446: issue with sockets

[Python-Dev] PEP 446: issue with sockets [Python-Dev] PEP 446: issue with socketsVictor 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 :-)
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
More information about the Python-Dev mailing list

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