Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue32415

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Add Task.get_loop() and Future.get_loop()
Type:Stage:resolved
Components:asyncioVersions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: yselivanovNosy List: asvetlov, yselivanov
Priority:normalKeywords:patch

Created on2017-12-23 16:59 byyselivanov, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 4992mergedyselivanov,2017-12-23 17:46
PR 4995mergedyselivanov,2017-12-23 20:19
PR 4999mergedyselivanov,2017-12-23 21:10
Messages (5)
msg308957 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)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)*(Python committer)Date: 2017-12-23 17:00
Agree
msg308966 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2017-12-23 20:04
New changesetca9b36cd1a384e5ecb56d9df9a59144240353ef0 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)*(Python committer)Date: 2017-12-23 20:42
New changeseta8fb07978953d3f55cfce836e3669d8b8e82b4c1 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)*(Python committer)Date: 2017-12-23 21:29
New changeset719ccbca69b21013a783b829de3404b5aa243827 by Yury Selivanov in branch 'master':bpo-32415: Fix "error is already set" (#4999)https://github.com/python/cpython/commit/719ccbca69b21013a783b829de3404b5aa243827
History
DateUserActionArgs
2022-04-11 14:58:56adminsetgithub: 76596
2017-12-23 21:29:28yselivanovsetmessages: +msg308971
2017-12-23 21:10:50yselivanovsetpull_requests: +pull_request4887
2017-12-23 20:42:29yselivanovsetmessages: +msg308968
2017-12-23 20:19:01yselivanovsetpull_requests: +pull_request4884
2017-12-23 20:08:07yselivanovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-12-23 20:04:17yselivanovsetmessages: +msg308966
2017-12-23 17:46:20yselivanovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request4880
2017-12-23 17:00:16asvetlovsetmessages: +msg308958
2017-12-23 16:59:11yselivanovcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp