Vajrasky Kok added the comment:
I found the culprit. The AddressFamily is not registered in _socket module. I
created a preliminary patch to show the culprit.
--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file35379/pydoc_display_AddressFamily.patch
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20689
___
___
STINNER Victor added the comment:
I found the culprit. The AddressFamily is not registered in _socket module. I
created a preliminary patch to show the culprit.
That's not surprising, this type is created in socket (socket.py), not in
_socket (the C module). Your patch is wrong.
--
Serhiy Storchaka added the comment:
Ah, now I see what is wrong.
Actually AddressFamily is missing in text output of pydoc too. Because
AddressFamily is not included in the __all__ list. SocketType is included,
but this is different SocketType, SocketType from _socket (see issue20386).
Here
Changes by Berker Peksag berker.pek...@gmail.com:
Added file: http://bugs.python.org/file35337/socket.SocketType.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20689
___
Berker Peksag added the comment:
I couldn't reproduce this issue. I'm attaching HTML output of both
socket.AddressFamily and socket.SocketType enum types.
--
nosy: +berker.peksag
Added file: http://bugs.python.org/file35336/socket.AddressFamily.html
Serhiy Storchaka added the comment:
Try ./python -m pydoc -w socket.
--
Added file: http://bugs.python.org/file35338/socket.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20689
___
New submission from Serhiy Storchaka:
The documentation for socket.AddressFamily (unlike to SocketType) isn't
generated in html page by pydoc.
May be issue20654 is similar to this issue.
--
components: Library (Lib)
messages: 211662
nosy: serhiy.storchaka
priority: normal
severity: