[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset b952f60213c60f89a50e4538783a18ced64ca91f by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-45772: socket.socket should be a class instead of a function 
(GH-23960) (GH-29543)
https://github.com/python/cpython/commit/b952f60213c60f89a50e4538783a18ced64ca91f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset 3f15792d60011639d9b170d8a76c6db7f6e83665 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-45772: socket.socket should be a class instead of a function 
(GH-23960) (GH-29542)
https://github.com/python/cpython/commit/3f15792d60011639d9b170d8a76c6db7f6e83665


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Oleg Iarygin


Change by Oleg Iarygin :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +27790
pull_request: https://github.com/python/cpython/pull/29542

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27791
pull_request: https://github.com/python/cpython/pull/29543

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27792
pull_request: https://github.com/python/cpython/pull/29544

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4c792f39e688b11c7c19e411ed4f76a7baa44638 by Hong Xu in branch 
'main':
bpo-45772: socket.socket should be a class instead of a function (GH-23960)
https://github.com/python/cpython/commit/4c792f39e688b11c7c19e411ed4f76a7baa44638


--
nosy: +asvetlov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Terry J. Reedy


Terry J. Reedy  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-09 Thread Oleg Iarygin


New submission from Oleg Iarygin :

Found a twice stale bpo-less but useful pull request 23960, so publish it here:

> Currently socket.socket is documented as a function, but it is really
a class (and thus has function-like usage to construct an object). This
correction would ensure that Python projects that are interlinking
Python's documentation can properly locate socket.socket as a type.

--
assignee: docs@python
components: Documentation
messages: 406045
nosy: arhadthedev, docs@python, xuhdev
priority: normal
pull_requests: 27751
severity: normal
status: open
title: socket.socket should be a class instead of a function
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com