mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-122982: Extend the deprecation period for bool inversion by two years (#123306)
This commit is contained in:
parent
625d0705b9
commit
249b083ed8
6 changed files with 8 additions and 5 deletions
|
@ -868,7 +868,7 @@ over ``&``, ``|`` and ``^``.
|
|||
.. deprecated:: 3.12
|
||||
|
||||
The use of the bitwise inversion operator ``~`` is deprecated and will
|
||||
raise an error in Python 3.14.
|
||||
raise an error in Python 3.16.
|
||||
|
||||
:class:`bool` is a subclass of :class:`int` (see :ref:`typesnumeric`). In
|
||||
many numeric contexts, ``False`` and ``True`` behave like the integers 0 and 1, respectively.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue