This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients arhadthedev, docs@python, pitrou, terry.reedy, xuhdev
Date 2021-11-12.22:14:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636755247.56.0.715105542281.issue45772@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-11-12 22:14:07terry.reedysetrecipients: + terry.reedy, pitrou, docs@python, xuhdev, arhadthedev
2021-11-12 22:14:07terry.reedysetmessageid: <1636755247.56.0.715105542281.issue45772@roundup.psfhosted.org>
2021-11-12 22:14:07terry.reedylinkissue45772 messages
2021-11-12 22:14:07terry.reedycreate