cpython/Lib/asyncio
Miss Islington (bot) e35d340960
[3.14] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161411)
gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957)

* Initial commit:
- add a private ``_index`` attr
- add a test

Co-authored-by: Sreehari Annam

* 📜🤖 Added by blurb_it.

* Apply suggestions from code review

* Update Lib/asyncio/locks.py

* Update Lib/asyncio/locks.py

---------
(cherry picked from commit 49c43f7de0)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2026-11-05 13:00:55 +01:00
..
__init__.py
__main__.py
base_events.py [3.14] gh-161076: Ignore setsockopt(TCP_NODELAY) errors in asyncio (GH-161253) (#161302) 2026-11-04 10:00:57 +01:00
base_futures.py
base_subprocess.py
base_tasks.py
constants.py
coroutines.py
events.py
exceptions.py
format_helpers.py
futures.py
graph.py
locks.py [3.14] gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) (GH-158957) (#161411) 2026-11-05 13:00:55 +01:00
log.py
mixins.py
proactor_events.py [3.14] gh-160429: Ignore ConnectionResetError from shutdown() when closing proactor sockets (GH-160909) (#161392) 2026-11-05 12:37:25 +01:00
protocols.py
queues.py
runners.py
selector_events.py [3.14] gh-109564: asyncio: drop connections accepted by a closed server (GH-160851) (#160879) 2026-10-29 10:37:53 +00:00
sslproto.py [3.14] gh-159875: Keep the SSL protocol of a closed transport after connection loss (GH-160069) (#161208) 2026-11-02 22:29:05 +01:00
staggered.py
streams.py
subprocess.py
taskgroups.py
tasks.py [3.14] gh-157301: Fix asyncio event loop hanging on a failed eager task start (#157844) 2026-11-02 19:27:54 +05:30
threads.py
timeouts.py [3.14] gh-137549: Handle BaseExceptionGroup in asyncio.Timeout.__aexit__ (GH-160957) (#160961) 2026-10-30 10:53:43 +01:00
tools.py [3.14] gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks (GH-159170) (#161177) 2026-11-02 14:24:23 +01:00
transports.py
trsock.py
unix_events.py [3.14] gh-158287: Fix blocked asyncio event loop on macOS when child process is stopped (GH-158962) (#160088) 2026-10-22 11:21:42 +05:30
windows_events.py [3.14] gh-93821: Keep asyncio proactor servers accepting after a connection reset (GH-161238) (#161309) 2026-11-04 11:35:37 +00:00
windows_utils.py