Issue 32415: Add Task.get_loop() and Future.get_loop() (original) (raw)
Issue32415
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/76596
classification
Title: | Add Task.get_loop() and Future.get_loop() | ||
---|---|---|---|
Type: | Stage: | resolved | |
Components: | asyncio | Versions: | Python 3.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | yselivanov | Nosy List: | asvetlov, yselivanov |
Priority: | normal | Keywords: | patch |
Created on 2017-12-23 16:59 by yselivanov, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 4992 | merged | yselivanov,2017-12-23 17:46 | |
PR 4995 | merged | yselivanov,2017-12-23 20:19 | |
PR 4999 | merged | yselivanov,2017-12-23 21:10 |
Messages (5) | ||
---|---|---|
msg308957 - (view) | Author: Yury Selivanov (yselivanov) * ![]() |
Date: 2017-12-23 16:59 |
Currently, asyncio code accesses Future._loop and Task._loop property to validate the event loop and implement functions like "Task.all_tasks()". So the "_loop" is a semi-official public API that other Task & Future implementations must follow in order to be compatible with asyncio code. I propose to add Future.get_loop() and Task.get_loop() methods, and soft-deprecate ._loop property. | ||
msg308958 - (view) | Author: Andrew Svetlov (asvetlov) * ![]() |
Date: 2017-12-23 17:00 |
Agree | ||
msg308966 - (view) | Author: Yury Selivanov (yselivanov) * ![]() |
Date: 2017-12-23 20:04 |
New changeset ca9b36cd1a384e5ecb56d9df9a59144240353ef0 by Yury Selivanov in branch 'master': bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992) https://github.com/python/cpython/commit/ca9b36cd1a384e5ecb56d9df9a59144240353ef0 | ||
msg308968 - (view) | Author: Yury Selivanov (yselivanov) * ![]() |
Date: 2017-12-23 20:42 |
New changeset a8fb07978953d3f55cfce836e3669d8b8e82b4c1 by Yury Selivanov in branch 'master': bpo-32415: Add more tests (#4995) https://github.com/python/cpython/commit/a8fb07978953d3f55cfce836e3669d8b8e82b4c1 | ||
msg308971 - (view) | Author: Yury Selivanov (yselivanov) * ![]() |
Date: 2017-12-23 21:29 |
New changeset 719ccbca69b21013a783b829de3404b5aa243827 by Yury Selivanov in branch 'master': bpo-32415: Fix "error is already set" (#4999) https://github.com/python/cpython/commit/719ccbca69b21013a783b829de3404b5aa243827 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:56 | admin | set | github: 76596 |
2017-12-23 21:29:28 | yselivanov | set | messages: + |
2017-12-23 21:10:50 | yselivanov | set | pull_requests: + <pull%5Frequest4887> |
2017-12-23 20:42:29 | yselivanov | set | messages: + |
2017-12-23 20:19:01 | yselivanov | set | pull_requests: + <pull%5Frequest4884> |
2017-12-23 20:08:07 | yselivanov | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2017-12-23 20:04:17 | yselivanov | set | messages: + |
2017-12-23 17:46:20 | yselivanov | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest4880> |
2017-12-23 17:00:16 | asvetlov | set | messages: + |
2017-12-23 16:59:11 | yselivanov | create |