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.

classification
Title: The documentation mentions asyncio.Server. It does not exist.
Type: Stage: resolved
Components: asyncio Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, miss-islington, vringar, yselivanov
Priority: normal Keywords: patch

Created on 2022-03-08 10:01 by vringar, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31760 merged vringar, 2022-03-08 12:06
PR 31773 merged miss-islington, 2022-03-08 21:07
PR 31774 merged miss-islington, 2022-03-08 21:09
Messages (4)
msg414741 - (view) Author: Stefan Zabka (vringar) * Date: 2022-03-08 10:01
The asyncio documentation claims that there is a class [asyncio.Server](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server).

However when looking in the sources I can only find [asyncio.base_events.Server](https://github.com/python/cpython/blob/be095f6c32188bba02079d086ac8639ea37cec3c/Lib/asyncio/base_events.py#L274-L384) which does not get exposed via `__all__` and can not be imported as asyncio.Server.
I had to name the type as I wanted to use this class as a type annotation for mypy.
msg414775 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2022-03-08 21:07
New changeset da80d6b2f3beff519cb1457d5e055168c89f7224 by Stefan Zabka in branch 'main':
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
https://github.com/python/cpython/commit/da80d6b2f3beff519cb1457d5e055168c89f7224
msg414776 - (view) Author: miss-islington (miss-islington) Date: 2022-03-08 21:33
New changeset 20e88f78a39ff56235c1d42ba4b947f5fa8e67b7 by Miss Islington (bot) in branch '3.9':
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
https://github.com/python/cpython/commit/20e88f78a39ff56235c1d42ba4b947f5fa8e67b7
msg414777 - (view) Author: miss-islington (miss-islington) Date: 2022-03-08 21:36
New changeset 8de434b332ed92ba2db90de6ed0969aee23735c2 by Miss Islington (bot) in branch '3.10':
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
https://github.com/python/cpython/commit/8de434b332ed92ba2db90de6ed0969aee23735c2
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91111
2022-03-08 21:46:14asvetlovsetstatus: open -> closed
resolution: duplicate
stage: patch review -> resolved
2022-03-08 21:36:53miss-islingtonsetmessages: + msg414777
2022-03-08 21:33:17miss-islingtonsetmessages: + msg414776
2022-03-08 21:09:28miss-islingtonsetpull_requests: + pull_request29881
2022-03-08 21:07:48miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request29880
2022-03-08 21:07:42asvetlovsetmessages: + msg414775
2022-03-08 14:44:21asvetlovsetversions: + Python 3.9, Python 3.11
2022-03-08 12:06:35vringarsetkeywords: + patch
stage: patch review
pull_requests: + pull_request29872
2022-03-08 10:01:14vringarcreate