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 [3.14] gh-140326: disable the relative import in asyncio REPL (GH-140327) (#154627) 2026-07-27 18:28:14 +05:30
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 [3.14] gh-103847: fix some asyncio subprocess cancellation bugs (GH-146571) (#154632) 2026-07-24 21:55:46 +05:30
base_tasks.py
constants.py
coroutines.py
events.py [3.14] gh-150285: Fix too long docstrings in the asyncio package (GH-151074) (GH-151175) 2026-06-09 16:42:57 +00:00
exceptions.py
format_helpers.py
futures.py
graph.py [3.14] gh-156988: Fix asyncio call graph loss at sync generators (#157005) 2026-09-06 15:59:45 +05:30
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 [3.14] gh-150285: Fix too long docstrings in the asyncio package (GH-151074) (GH-151175) 2026-06-09 16:42:57 +00:00
runners.py [3.14] gh-150285: Fix too long docstrings in the asyncio package (GH-151074) (GH-151175) 2026-06-09 16:42:57 +00:00
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 [3.14] gh-155941: Close the transport when client_connected_cb raises in asyncio (GH-155942) (#156273) 2026-09-08 13:48:50 +05:30
subprocess.py gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710) 2023-09-22 15:29:42 +02:00
taskgroups.py gh-128307: Support eager_start=<bool> in create_eager_task_factory and various create_task functions (#128306) 2025-05-05 04:58:07 +00:00
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 [3.14] gh-150285: Fix too long docstrings in the asyncio package (GH-151074) (GH-151175) 2026-06-09 16:42:57 +00:00
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