[issue20689] socket.AddressFamily is absent in pydoc output

Ethan Furman report at bugs.python.org
Sat Oct 18 07:54:46 CEST 2014


Ethan Furman added the comment:

As I said in msg209237:
------------------------------------------------------------------------------------
> 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)
------------------------------------------------------------------------------------

The Enum classes have been documented, so they should be in __all__.

----------
nosy: +ethan.furman

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


More information about the Python-bugs-list mailing list