diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-08-25 19:24:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 19:24:44 (GMT) |
commit | 249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb (patch) | |
tree | 60922256a991d66cc91d22f79e6d1a53973ed423 /Objects | |
parent | 625d0705b9ab348f85853ed73b796763b70154a5 (diff) | |
download | cpython-249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb.zip cpython-249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb.tar.gz cpython-249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb.tar.bz2 |
gh-122982: Extend the deprecation period for bool inversion by two years (#123306)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/boolobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index fb48dcb..a88a8ad 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -71,8 +71,8 @@ static PyObject * bool_invert(PyObject *v) { if (PyErr_WarnEx(PyExc_DeprecationWarning, - "Bitwise inversion '~' on bool is deprecated. This " - "returns the bitwise inversion of the underlying int " + "Bitwise inversion '~' on bool is deprecated and will be removed in " + "Python 3.16. This returns the bitwise inversion of the underlying int " "object and is usually not what you expect from negating " "a bool. Use the 'not' operator for boolean negation or " "~int(x) if you really want the bitwise inversion of the " |