cpython/Lib/asyncio
Miss Islington (bot) a7e281150e
gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (GH-97765)
Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised.
(cherry picked from commit 3a49dbb98c)

Co-authored-by: hetmankp <728670+hetmankp@users.noreply.github.com>
2022-10-03 14:39:44 -07:00
..
__init__.py bpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664) 2020-12-06 18:54:33 +02:00
__main__.py bpo-37028: asyncio REPL; activated via 'python -m asyncio'. (GH-13472) 2019-05-27 13:42:29 +02:00
base_events.py gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (GH-97765) 2022-10-03 14:39:44 -07:00
base_futures.py bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) 2020-11-10 15:58:31 +02:00
base_subprocess.py bpo-32528: Make asyncio.CancelledError a BaseException. (GH-13528) 2019-05-27 14:45:12 +02:00
base_tasks.py bpo-39764: Make Task.get_stack accept ag_frame (#18669) 2020-03-02 14:45:54 +02:00
constants.py bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01:00
coroutines.py bpo-36921: Deprecate @coroutine for sake of async def (GH-13346) 2019-05-16 07:52:10 -07:00
events.py bpo-46278: fix typo introduced in GH-30427 (GH-30430) (GH-30431) 2022-01-06 16:44:22 +02:00
exceptions.py bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) 2020-11-28 16:27:28 +02:00
format_helpers.py bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161) 2018-05-28 16:27:34 -04:00
futures.py GH-96827: Don't touch closed loops from executor threads (GH-96837) 2022-09-30 13:25:06 -07:00
locks.py gh-97545: Make Semaphore run faster. (GH-97549) 2022-09-26 16:57:52 -07:00
log.py
mixins.py bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) 2020-11-25 06:50:44 -05:00
proactor_events.py gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842) (GH-92904) 2022-06-28 11:43:14 +02:00
protocols.py bpo-46741: Update `asyncio.protocols.BufferedProtocol` docstring (GH-31327) (GH-31362) 2022-02-15 19:14:09 +02:00
queues.py [3.10] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (#30784) 2022-01-22 14:28:51 +02:00
runners.py bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521) 2020-11-28 10:21:17 +02:00
selector_events.py bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131) 2022-03-28 15:15:05 -07:00
sslproto.py bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958) 2022-02-01 11:30:03 -08:00
staggered.py Fix import path for asyncio.TimeoutError (#17691) 2019-12-24 12:46:42 +02:00
streams.py GH-74116: Allow multiple drain waiters for asyncio.StreamWriter (GH-94705) 2022-09-08 08:42:08 -07:00
subprocess.py bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521) 2020-11-28 10:21:17 +02:00
tasks.py gh-94972: document that shield users need to keep a reference to their task (GH-96724) 2022-09-10 07:57:44 -07:00
threads.py Trivial typo in docstring (#27504) 2021-07-31 07:04:45 +02:00
transports.py bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958) 2022-02-01 11:30:03 -08:00
trsock.py bpo-37027: Return a proxy socket object from transp.get_extra_info('socket') (GH-13530) 2019-05-27 06:57:19 -07:00
unix_events.py GH-85760: Fix race in calling process_exited callback too early (GH-97009) 2022-09-22 10:23:48 -07:00
windows_events.py bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) (#30388) 2022-01-04 11:22:26 +02:00
windows_utils.py asyncio: __del__() keep reference to warnings.warn (GH-11491) 2019-01-10 11:24:40 +01:00