Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue24178

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:asyncio: support 'async with' for locks
Type:enhancementStage:resolved
Components:asyncioVersions:Python 3.5
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: yselivanovNosy List: asvetlov, gvanrossum, python-dev, vstinner, yselivanov
Priority:normalKeywords:patch

Created on2015-05-13 16:30 byyselivanov, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
alock.patchyselivanov,2015-05-13 16:30review
alock_2.patchyselivanov,2015-05-13 17:51review
Messages (4)
msg243102 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2015-05-13 16:30
The attached patch makes Locks, Conditions, Semaphores, and BoundedSemaphores support new 'async with' syntax.Because the patch contains a file that will only be checked in to the CPython repo (test_pep492.py), I decided to create the issue on bugs.python.org instead of asyncio GH repo.Please review.
msg243107 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2015-05-13 17:51
Updated patch is attached:- '__aenter__' returns None- "with await lock" is now supported.
msg243110 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2015-05-13 18:10
New changeset616f15f05530 by Yury Selivanov in branch 'default':Issue 24178: support 'async with' for asyncio locks.https://hg.python.org/cpython/rev/616f15f05530
msg243115 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2015-05-13 18:40
Guido, thanks for review. Closing the issue.
History
DateUserActionArgs
2022-04-11 14:58:16adminsetgithub: 68366
2015-05-13 18:40:08yselivanovsetstatus: open -> closed
resolution: fixed
messages: +msg243115

stage: patch review -> resolved
2015-05-13 18:10:45python-devsetnosy: +python-dev
messages: +msg243110
2015-05-13 17:51:11yselivanovsetfiles: +alock_2.patch

messages: +msg243107
2015-05-13 16:30:54yselivanovcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp