Message406246
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? |
|
Date |
User |
Action |
Args |
2021-11-12 22:14:07 | terry.reedy | set | recipients:
+ terry.reedy, pitrou, docs@python, xuhdev, arhadthedev |
2021-11-12 22:14:07 | terry.reedy | set | messageid: <1636755247.56.0.715105542281.issue45772@roundup.psfhosted.org> |
2021-11-12 22:14:07 | terry.reedy | link | issue45772 messages |
2021-11-12 22:14:07 | terry.reedy | create | |
|