We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dec73 commit 8290ea7Copy full SHA for 8290ea7
Doc/whatsnew/3.12.rst
@@ -608,6 +608,12 @@ Deprecated
608
* The *onerror* argument of :func:`shutil.rmtree` is deprecated as will be removed
609
in Python 3.14. Use *onexc* instead. (Contributed by Irit Katriel in :gh:`102828`.)
610
611
+* The bitwise inversion operator (~) on bool is deprecated. It will throw an
612
+ error in Python 3.14. Use ``not`` for logical negation of bools instead.
613
+ In the rare case that you really need the bitwise inversion of the underlying
614
+ ``int``, convert to int explicitly ``~int(x)``. (Contributed by Tim Hoffmann
615
+ in :gh:`103487`.)
616
+
617
618
Pending Removal in Python 3.13
619
------------------------------
0 commit comments