Skip to content

Commit f309a02

Browse files
committed
Moving to 3.9 deprecation from 3.8
1 parent 663add0 commit f309a02

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/whatsnew/3.9.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ Deprecated
146146
of Python. For the majority of use cases users can leverage the Abstract Syntax
147147
Tree (AST) generation and compilation stage, using the :mod:`ast` module.
148148

149+
* Using :data:`NotImplemented` in a boolean context has been deprecated,
150+
as it is almost exclusively the result of incorrect rich comparator
151+
implementations. It will be made a :exc:`TypeError` in a future version
152+
of Python.
153+
(Contributed by Josh Rosenberg in :issue:`35712`.)
154+
149155

150156
Removed
151157
=======

0 commit comments

Comments
 (0)