cpython/Lib/asyncio
Miss Islington (bot) 41090b7ba0
[3.12] gh-112182: Replace StopIteration with RuntimeError for future (GH-113220) (GH-123033)
When an `StopIteration` raises into `asyncio.Future`, this will cause
a thread to hang. This commit address this by not raising an exception
and silently transforming the `StopIteration` with a `RuntimeError`,
which the caller can reconstruct from `fut.exception().__cause__`
(cherry picked from commit 4826d52338)

Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
2024-08-15 15:34:53 +00:00
..
__init__.py [3.12] gh-106075: add asyncio.taskgroups.__all__ to asyncio.__all__ (GH-106090) (#106098) 2023-06-26 12:26:15 +00:00
__main__.py [3.12] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122117) 2024-07-22 13:41:23 +02:00
base_events.py [3.12] gh-121913: Use str(exc) instead of exc.strerror in asyncio.base_events (GH-122269) (#122279) 2024-07-25 12:15:22 +00:00
base_futures.py gh-84623: Remove unused imports in stdlib (#93773) 2022-06-13 16:28:41 +02:00
base_subprocess.py GH-100133: fix asyncio subprocess losing stderr and stdout output (#100154) 2022-12-21 15:20:26 +05:30
base_tasks.py gh-97696: asyncio eager tasks factory (#102853) 2023-05-01 15:10:13 -06:00
constants.py [3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046) 2024-01-14 02:15:06 +00:00
coroutines.py GH-102748: remove legacy support for generator based coroutines from asyncio.iscoroutine (#102749) 2023-03-16 20:28:10 +05:30
events.py [3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046) 2024-01-14 02:15:06 +00:00
exceptions.py bpo-43352: Add a Barrier object in asyncio lib (GH-24903) 2022-03-26 00:01:21 +02:00
format_helpers.py
futures.py [3.12] gh-112182: Replace StopIteration with RuntimeError for future (GH-113220) (GH-123033) 2024-08-15 15:34:53 +00:00
locks.py gh-97545: Make Semaphore run faster. (#97549) 2022-09-26 16:38:00 -07:00
log.py
mixins.py
proactor_events.py [3.12] gh-113892: Add a extra check to ProactorEventLoop.sock_connect to ensure that the given socket is in non-blocking mode (GH-119519) (#119913) 2024-06-01 16:29:34 +00:00
protocols.py
queues.py
runners.py GH-99388: add loop_factory parameter to asyncio.run (#99462) 2022-11-14 10:18:51 -08:00
selector_events.py [3.12] gh-109534: fix reference leak when SSL handshake fails (GH-114074) (#114829) 2024-02-01 01:00:09 +00:00
sslproto.py [3.12] gh-109534: fix reference leak when SSL handshake fails (GH-114074) (#114829) 2024-02-01 01:00:09 +00:00
staggered.py
streams.py [3.12] gh-113538: Don't error in stream reader protocol callback when task is cancelled (GH-113690) (#113713) 2024-01-04 20:51:53 +00:00
subprocess.py [3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) (#109731) 2023-10-02 17:21:51 +02:00
taskgroups.py [3.12] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111171) 2023-10-21 19:48:53 +00:00
tasks.py [3.12] chore: fix typos (#116345) (#116370) 2024-03-05 18:51:17 +00:00
threads.py
timeouts.py [3.12] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111171) 2023-10-21 19:48:53 +00:00
transports.py
trsock.py
unix_events.py [3.12] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111412) 2023-10-27 16:36:05 -07:00
windows_events.py [3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (GH-32011) (GH-117209) 2024-03-25 12:21:31 +02:00
windows_utils.py