Skip to content

Commit

Permalink
Merge remote-tracking branch 'cpython/main' into pythongh-86682
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Nov 21, 2022
2 parents a118548 + c450c8c commit 1f80246
Show file tree
Hide file tree
Showing 80 changed files with 7,322 additions and 3,037 deletions.
2 changes: 1 addition & 1 deletion Doc/c-api/init_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ PyPreConfig
.. c:member:: int configure_locale
Set the LC_CTYPE locale to the user preferred locale?
Set the LC_CTYPE locale to the user preferred locale.
If equals to ``0``, set :c:member:`~PyPreConfig.coerce_c_locale` and
:c:member:`~PyPreConfig.coerce_c_locale_warn` members to ``0``.
Expand Down
8 changes: 8 additions & 0 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and Tasks.
Coroutines
==========

**Source code:** :source:`Lib/asyncio/coroutines.py`

----------------------------------------------------

:term:`Coroutines <coroutine>` declared with the async/await syntax is the
preferred way of writing asyncio applications. For example, the following
snippet of code prints "hello", waits 1 second,
Expand Down Expand Up @@ -230,6 +234,10 @@ is :meth:`loop.run_in_executor`.
Creating Tasks
==============

**Source code:** :source:`Lib/asyncio/tasks.py`

-----------------------------------------------

.. function:: create_task(coro, *, name=None, context=None)

Wrap the *coro* :ref:`coroutine <coroutine>` into a :class:`Task`
Expand Down
2 changes: 2 additions & 0 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

.. moduleauthor:: Thomas Heller <theller@python.net>

**Source code:** :source:`Lib/ctypes`

--------------

:mod:`ctypes` is a foreign function library for Python. It provides C compatible
Expand Down
2 changes: 2 additions & 0 deletions Doc/library/curses.ascii.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. moduleauthor:: Eric S. Raymond <esr@thyrsus.com>
.. sectionauthor:: Eric S. Raymond <esr@thyrsus.com>

**Source code:** :source:`Lib/curses/ascii.py`

--------------

The :mod:`curses.ascii` module supplies name constants for ASCII characters and
Expand Down
2 changes: 2 additions & 0 deletions Doc/library/curses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
.. sectionauthor:: Eric Raymond <esr@thyrsus.com>

**Source code:** :source:`Lib/curses`

--------------

The :mod:`curses` module provides an interface to the curses library, the
Expand Down
2 changes: 2 additions & 0 deletions Doc/library/ensurepip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.. versionadded:: 3.4

**Source code:** :source:`Lib/ensurepip`

--------------

The :mod:`ensurepip` package provides support for bootstrapping the ``pip``
Expand Down
4 changes: 4 additions & 0 deletions Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,10 @@ their subgroups based on the types of the contained exceptions.
def derive(self, excs):
return Errors(excs, self.exit_code)

Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which
is also a subclass of :exc:`Exception` can only wrap instances of
:exc:`Exception`.

.. versionadded:: 3.11


Expand Down
Loading

0 comments on commit 1f80246

Please sign in to comment.