summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2024-10-09 23:44:03 (GMT)
committerGitHub <noreply@github.com>2024-10-09 23:44:03 (GMT)
commit99400930ac1d4e5e10a5ae30f8202d8bc2661e39 (patch)
treec10248b89e10f17d1ea801755e62ce469b41d5a5 /Misc
parent942916378aa6a0946b1385c2c7ca6935620d710a (diff)
downloadcpython-99400930ac1d4e5e10a5ae30f8202d8bc2661e39.zip
cpython-99400930ac1d4e5e10a5ae30f8202d8bc2661e39.tar.gz
cpython-99400930ac1d4e5e10a5ae30f8202d8bc2661e39.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Documentation/2024-09-29-18-14-52.gh-issue-119333.7tinr0.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Documentation/2024-09-29-18-14-52.gh-issue-119333.7tinr0.rst b/Misc/NEWS.d/next/Documentation/2024-09-29-18-14-52.gh-issue-119333.7tinr0.rst
new file mode 100644
index 0000000..69a5c76
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2024-09-29-18-14-52.gh-issue-119333.7tinr0.rst
@@ -0,0 +1,3 @@
+Added definitions for :term:`context`, :term:`current context`, and
+:term:`context management protocol`, updated related definitions to be
+consistent, and expanded the documentation for :class:`contextvars.Context`.