cpython/Lib/asyncio
Ethan Furman f60b07ab6c
bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)
* [Enum] reduce scope of new format behavior

Instead of treating all Enums the same for format(), only user mixed-in
enums will be affected.  In other words, IntEnum and IntFlag will not be
changing the format() behavior, due to the requirement that they be
drop-in replacements of existing integer constants.

If a user creates their own integer-based enum, then the new behavior
will apply:

    class Grades(int, Enum):
        A = 5
        B = 4
        C = 3
        D = 2
        F = 0

Now:  format(Grades.B)  -> DeprecationWarning and '4'
3.12:                   -> no warning, and 'B'
2021-06-18 13:15:46 -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 bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01: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-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01: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 bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554) 2021-04-25 13:40:44 +03:00
locks.py bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) 2020-11-25 06:50:44 -05: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 Fix typos in multiple files (GH-26689) 2021-06-12 22:47:44 -04:00
protocols.py bpo-35394: Add empty slots to abstract asyncio protocols (#10889) 2018-12-11 19:07:05 +02:00
queues.py bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) 2020-11-25 06:50:44 -05: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-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01:00
sslproto.py bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01:00
staggered.py Fix import path for asyncio.TimeoutError (#17691) 2019-12-24 12:46:42 +02:00
streams.py bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554) 2021-04-25 13:40:44 +03: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 bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554) 2021-04-25 13:40:44 +03:00
threads.py Fix asyncio.to_thread() documented return type (GH-20547) 2020-05-31 00:07:04 -07:00
transports.py bpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914) 2020-08-20 18:10:01 +05:30
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 bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752) 2021-06-18 13:15:46 -07:00
windows_events.py bpo-39010: Fix errors logged on proactor loop restart (#22017) 2020-08-31 12:57:52 -07:00
windows_utils.py asyncio: __del__() keep reference to warnings.warn (GH-11491) 2019-01-10 11:24:40 +01:00