@@ -19,10 +19,35 @@ Pending removal in Python 3.16
1919* :mod: `asyncio `:
2020
2121 * :func: `!asyncio.iscoroutinefunction ` is deprecated
22- and will be removed in Python 3.16,
22+ and will be removed in Python 3.16;
2323 use :func: `inspect.iscoroutinefunction ` instead.
2424 (Contributed by Jiahao Li and Kumar Aditya in :gh: `122875 `.)
2525
26+ * :mod: `asyncio ` policy system is deprecated and will be removed in Python 3.16.
27+ In particular, the following classes and functions are deprecated:
28+
29+ * :class: `asyncio.AbstractEventLoopPolicy `
30+ * :class: `asyncio.DefaultEventLoopPolicy `
31+ * :class: `asyncio.WindowsSelectorEventLoopPolicy `
32+ * :class: `asyncio.WindowsProactorEventLoopPolicy `
33+ * :func: `asyncio.get_event_loop_policy `
34+ * :func: `asyncio.set_event_loop_policy `
35+ * :func: `asyncio.set_event_loop `
36+
37+ Users should use :func: `asyncio.run ` or :class: `asyncio.Runner ` with
38+ *loop_factory * to use the desired event loop implementation.
39+
40+ For example, to use :class: `asyncio.SelectorEventLoop ` on Windows::
41+
42+ import asyncio
43+
44+ async def main():
45+ ...
46+
47+ asyncio.run(main(), loop_factory=asyncio.SelectorEventLoop)
48+
49+ (Contributed by Kumar Aditya in :gh: `127949 `.)
50+
2651* :mod: `builtins `:
2752
2853 * Bitwise inversion on boolean types, ``~True `` or ``~False ``
@@ -54,3 +79,8 @@ Pending removal in Python 3.16
5479
5580 * The undocumented and unused :attr: `!TarFile.tarfile ` attribute
5681 has been deprecated since Python 3.13.
82+
83+ * :mod: `functools `:
84+
85+ * Calling the Python implementation of :func: `functools.reduce ` with *function *
86+ or *sequence * as keyword arguments has been deprecated since Python 3.14.
0 commit comments