diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-12-26 11:29:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 11:29:58 (GMT) |
commit | d968e422efa2050ff2c88467e7cea61ba5c55576 (patch) | |
tree | 301e2a47f0759b5439b3ef9b39fc4377fb5ffb30 | |
parent | 2cb9ed2a6a082972bfc496eccb320c3ae3df72df (diff) | |
download | cpython-d968e422efa2050ff2c88467e7cea61ba5c55576.zip cpython-d968e422efa2050ff2c88467e7cea61ba5c55576.tar.gz cpython-d968e422efa2050ff2c88467e7cea61ba5c55576.tar.bz2 |
docs: Fix typos and use anchor for internal link (GH-30236)
(cherry picked from commit c1d7a6bed9f2bb8cb7612d196fc0caba016fa98c)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
-rw-r--r-- | Doc/whatsnew/3.10.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 978651f..c07523c 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -1426,7 +1426,7 @@ and to match the behavior of static type checkers specified in the PEP. 1. ``Literal`` now de-duplicates parameters. 2. Equality comparisons between ``Literal`` objects are now order independent. -3. ``Literal`` comparisons now respects types. For example, +3. ``Literal`` comparisons now respect types. For example, ``Literal[0] == Literal[False]`` previously evaluated to ``True``. It is now ``False``. To support this change, the internally used type cache now supports differentiating types. @@ -1643,13 +1643,12 @@ Deprecated :meth:`importlib.machinery.FrozenImporter.find_module`, :meth:`importlib.machinery.WindowsRegistryFinder.find_module`, :meth:`importlib.machinery.PathFinder.find_module`, - :meth:`importlib.abc.MetaPathFinder.find_module`), + :meth:`importlib.abc.MetaPathFinder.find_module` ), :meth:`importlib.abc.PathEntryFinder.find_module` ( - :meth:`importlib.machinery.FileFinder.find_module`, - ), and + :meth:`importlib.machinery.FileFinder.find_module` ), and :meth:`importlib.abc.PathEntryFinder.find_loader` ( - :meth:`importlib.machinery.FileFinder.find_loader` - ) now raise :exc:`DeprecationWarning` and are slated for removal in + :meth:`importlib.machinery.FileFinder.find_loader` ) + now raise :exc:`DeprecationWarning` and are slated for removal in Python 3.12 (previously they were documented as deprecated in Python 3.4). (Contributed by Brett Cannon in :issue:`42135`.) @@ -1690,7 +1689,7 @@ Deprecated * :func:`asyncio.get_event_loop` now emits a deprecation warning if there is no running event loop. In the future it will be an alias of :func:`~asyncio.get_running_loop`. - :mod:`asyncio` functions which implicitly create a :class:`~asyncio.Future` + :mod:`asyncio` functions which implicitly create :class:`~asyncio.Future` or :class:`~asyncio.Task` objects now emit a deprecation warning if there is no running event loop and no explicit *loop* argument is passed: :func:`~asyncio.ensure_future`, @@ -1830,7 +1829,7 @@ Removed running in different threads. Note that the low-level API will still accept ``loop``. - See `Changes in the Python API`_ for examples of how to replace existing code. + See :ref:`changes-python-api` for examples of how to replace existing code. (Contributed by Yurii Karabas, Andrew Svetlov, Yury Selivanov and Kyle Stanley in :issue:`42392`.) @@ -1854,6 +1853,7 @@ Changes in the Python syntax following keyword. (Contributed by Serhiy Storchaka in :issue:`43833`). +.. _changes-python-api: Changes in the Python API ------------------------- @@ -1975,7 +1975,7 @@ Build Changes (Contributed by Victor Stinner in :issue:`36020`.) * :mod:`sqlite3` requires SQLite 3.7.15 or higher. (Contributed by Sergey Fedoseev - and Erlend E. Aasland :issue:`40744` and :issue:`40810`.) + and Erlend E. Aasland in :issue:`40744` and :issue:`40810`.) * The :mod:`atexit` module must now always be built as a built-in module. (Contributed by Victor Stinner in :issue:`42639`.) |