summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.9.rst
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-02-29 20:46:12 (GMT)
committerGitHub <noreply@github.com>2024-02-29 20:46:12 (GMT)
commitdbe44f150cd161bd327ed662e527a4c93829fb3e (patch)
treef0b73716a642cc051e011de4c98acb01945a1181 /Doc/whatsnew/3.9.rst
parent0656509033948780e6703391daca773c779041f7 (diff)
downloadcpython-dbe44f150cd161bd327ed662e527a4c93829fb3e.zip
cpython-dbe44f150cd161bd327ed662e527a4c93829fb3e.tar.gz
cpython-dbe44f150cd161bd327ed662e527a4c93829fb3e.tar.bz2
Docs: mark up NotImplemented using the :data: role throughout the docs (#116135)
Diffstat (limited to 'Doc/whatsnew/3.9.rst')
-rw-r--r--Doc/whatsnew/3.9.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index b24c138..49d926b 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -1126,7 +1126,7 @@ Changes in the Python API
``logging.getLogger(__name__)`` in some top-level module called ``'root.py'``.
(Contributed by Vinay Sajip in :issue:`37742`.)
-* Division handling of :class:`~pathlib.PurePath` now returns ``NotImplemented``
+* Division handling of :class:`~pathlib.PurePath` now returns :data:`NotImplemented`
instead of raising a :exc:`TypeError` when passed something other than an
instance of ``str`` or :class:`~pathlib.PurePath`. This allows creating
compatible classes that don't inherit from those mentioned types.