1- Pending Removal in Python 3.16
1+ Pending removal in Python 3.16
22------------------------------
33
4- * :mod: ` builtins ` :
4+ * The import system :
55
6- * Bitwise inversion on boolean types, ``~True `` or ``~False ``
7- has been deprecated since Python 3.12,
8- as it produces surprising and unintuitive results (``-2 `` and ``-1 ``).
9- Use ``not x `` instead for the logical negation of a Boolean.
10- In the rare case that you need the bitwise inversion of
11- the underlying integer, convert to ``int `` explicitly (``~int(x) ``).
6+ * Setting :attr: `~module.__loader__ ` on a module while
7+ failing to set :attr: `__spec__.loader <importlib.machinery.ModuleSpec.loader> `
8+ is deprecated. In Python 3.16, :attr: `!__loader__ ` will cease to be set or
9+ taken into consideration by the import system or the standard library.
1210
1311* :mod: `array `:
1412
@@ -18,6 +16,22 @@ Pending Removal in Python 3.16
1816 Use the ``'w' `` format code (:c:type: `Py_UCS4 `)
1917 for Unicode characters instead.
2018
19+ * :mod: `asyncio `:
20+
21+ * :func: `!asyncio.iscoroutinefunction ` is deprecated
22+ and will be removed in Python 3.16,
23+ use :func: `inspect.iscoroutinefunction ` instead.
24+ (Contributed by Jiahao Li and Kumar Aditya in :gh: `122875 `.)
25+
26+ * :mod: `builtins `:
27+
28+ * Bitwise inversion on boolean types, ``~True `` or ``~False ``
29+ has been deprecated since Python 3.12,
30+ as it produces surprising and unintuitive results (``-2 `` and ``-1 ``).
31+ Use ``not x `` instead for the logical negation of a Boolean.
32+ In the rare case that you need the bitwise inversion of
33+ the underlying integer, convert to ``int `` explicitly (``~int(x) ``).
34+
2135* :mod: `shutil `:
2236
2337 * The :class: `!ExecError ` exception
0 commit comments