[docs] [issue20386] socket.SocketType enum overwrites import of _socket.SocketType

Ethan Furman report at bugs.python.org
Sat Jan 25 21:40:35 CET 2014


Ethan Furman added the comment:

The containers are there to help with discoverability.  If you want to know what all the (common) AF values are you can either do

    [name for name in dir(socket) if name.isupper() and name.startswith('AF_')]

or

    list(socket.AddressFamily)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20386>
_______________________________________


More information about the docs mailing list