1
- Pending Removal in Python 3.16
1
+ Pending removal in Python 3.16
2
2
------------------------------
3
3
4
- * :mod: ` builtins ` :
4
+ * The import system :
5
5
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.
12
10
13
11
* :mod: `array `:
14
12
@@ -18,6 +16,22 @@ Pending Removal in Python 3.16
18
16
Use the ``'w' `` format code (:c:type: `Py_UCS4 `)
19
17
for Unicode characters instead.
20
18
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
+
21
35
* :mod: `shutil `:
22
36
23
37
* The :class: `!ExecError ` exception
0 commit comments