8000 GH-111693: Propagate correct asyncio.CancelledError instance out of asyncio.Condition.wait() by kristjanvalur · Pull Request #111694 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-111693: Propagate correct asyncio.CancelledError instance out of asyncio.Condition.wait() #111694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
  • Loading branch information
kristjanvalur and gvanrossum authored Nov 21, 2023
commit c060f40a7e0b89cd530445ea023f5ae1caceb0ec
4 changes: 2 additions & 2 deletions Lib/asyncio/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ async def wait(self):

if err:
try:
raise err # re-raise same exception instance
raise err # Re-raise most recent exception instance
finally:
err = None # brake reference cycles
err = None # Break reference cycles

async def wait_for(self, predicate):
"""Wait until a predicate becomes true.
Expand Down
0