diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2018-10-26 10:52:11 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-26 10:52:11 (GMT) |
commit | e483f02423917dc4dfd25f46e5b9e6fce304777d (patch) | |
tree | 6171799d4ddcc72b7364a62b3f08a1fe124e8f6e /Doc/whatsnew | |
parent | ddb961d2abe5d5fde76d85b21a77e4e91e0043ad (diff) | |
download | cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.zip cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.gz cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.bz2 |
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 2 | ||||
-rw-r--r-- | Doc/whatsnew/3.6.rst | 2 | ||||
-rw-r--r-- | Doc/whatsnew/3.7.rst | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 4eddf84..b4540ac 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -593,7 +593,7 @@ a :term:`__future__` import is necessary:: RuntimeError: generator raised StopIteration Without a ``__future__`` import, a :exc:`PendingDeprecationWarning` will be -raised whenever a ``StopIteration`` exception is raised inside a generator. +raised whenever a :exc:`StopIteration` exception is raised inside a generator. .. seealso:: diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index bba1654..936ea2d 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -741,7 +741,7 @@ Some smaller changes made to the core Python language are: * A ``global`` or ``nonlocal`` statement must now textually appear before the first use of the affected name in the same scope. - Previously this was a ``SyntaxWarning``. + Previously this was a :exc:`SyntaxWarning`. * It is now possible to set a :ref:`special method <specialnames>` to ``None`` to indicate that the corresponding operation is not available. diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index d4daf8f..55cf74f 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -1030,7 +1030,7 @@ support the loading of resources from packages. See also lacks a spec. (Contributed by Garvit Khatri in :issue:`29851`.) -:func:`importlib.find_spec` now raises ``ModuleNotFoundError`` instead of +:func:`importlib.find_spec` now raises :exc:`ModuleNotFoundError` instead of :exc:`AttributeError` if the specified parent module is not a package (i.e. lacks a ``__path__`` attribute). (Contributed by Milan Oberkirch in :issue:`30436`.) |