8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e177cac commit bf02fd4Copy full SHA for bf02fd4
Doc/whatsnew/3.12.rst
@@ -692,6 +692,11 @@ Deprecated
692
Python 3.14, when ``'data'`` filter will become the default.
693
See :ref:`tarfile-extraction-filter` for details.
694
695
+* The bitwise inversion operator (~) on bool is deprecated. It will throw an
696
+ error in Python 3.14. Use ``not`` for logical negation of bools instead.
697
+ In the rare case that you really need the bitwise inversion of the underlying
698
+ ``int``, convert to int explicitly ``~int(x)``. (Contributed by Tim Hoffmann
699
+ in :gh:`103487`.)
700
701
Pending Removal in Python 3.13
702
------------------------------
0 commit comments