]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-124872: Refine contextvars documentation (#124773)
authorRichard Hansen <rhansen@rhansen.org>
Wed, 9 Oct 2024 23:44:03 +0000 (19:44 -0400)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 23:44:03 +0000 (16:44 -0700)
commit99400930ac1d4e5e10a5ae30f8202d8bc2661e39
treec10248b89e10f17d1ea801755e62ce469b41d5a5
parent942916378aa6a0946b1385c2c7ca6935620d710a
gh-124872: Refine contextvars documentation (#124773)

* Add definitions for "context", "current context", and "context
    management protocol".
  * Update related definitions to be consistent with the new
    definitions.
  * Restructure the documentation for the `contextvars.Context` class
    to prepare for adding context manager support, and for consistency
    with the definitions.
  * Use `testcode` and `testoutput` to test the `Context.run` example.
  * Expand the documentation for the `Py_CONTEXT_EVENT_ENTER` and
    `Py_CONTEXT_EVENT_EXIT` events to clarify and to prepare for
    planned changes.
Doc/c-api/contextvars.rst
Doc/glossary.rst
Doc/library/contextvars.rst
Include/cpython/context.h
Misc/NEWS.d/next/Documentation/2024-09-29-18-14-52.gh-issue-119333.7tinr0.rst [new file with mode: 0644]