Terry J. Reedy <tjre...@udel.edu> added the comment:

Filter, map, and zip are documented as functions to allow other interpreters to 
implement them as such, with generator functions.  That does not apply here, 
but maybe there is another reason for socket being called a 'function.

Antoine, git blame credits you with socket.rst, line 565
.. function:: socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None)
https://docs.python.org/3/library/socket.html#socket.socket

PR-23960 changes 'function' to 'class'.  What do you think?

----------
nosy: +pitrou, terry.reedy
stage:  -> patch review
type:  -> behavior
versions:  -Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to