summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2018-05-22 17:31:56 (GMT)
committerYury Selivanov <yury@magic.io>2018-05-22 17:31:56 (GMT)
commitb2f5f59ae15564b991f3ca4850e6ad28d9faacbc (patch)
treeac46e2cf3d3b8fafc5ddab3c885fdd0407d7ec77 /Doc/whatsnew/3.7.rst
parent2a6d5da1d35b4a5342f6347d75298e2bec8194ed (diff)
downloadcpython-b2f5f59ae15564b991f3ca4850e6ad28d9faacbc.zip
cpython-b2f5f59ae15564b991f3ca4850e6ad28d9faacbc.tar.gz
cpython-b2f5f59ae15564b991f3ca4850e6ad28d9faacbc.tar.bz2
bpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 8324be8..ac69719 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -515,7 +515,8 @@ New Modules
contextvars
-----------
-The new :mod:`contextvars` module and a set of new C APIs introduce
+The new :mod:`contextvars` module and a set of
+:ref:`new C APIs <contextvarsobjects>` introduce
support for *context variables*. Context variables are conceptually
similar to thread-local variables. Unlike TLS, context variables
support asynchronous code correctly.
@@ -1543,6 +1544,9 @@ A new API for thread-local storage has been implemented. See
:ref:`thread-specific-storage-api` for a complete reference.
(Contributed by Masayuki Yamamoto in :issue:`25658`.)
+The new :ref:`context variables <whatsnew37-pep567>` functionality
+exposes a number of :ref:`new C APIs <contextvarsobjects>`.
+
The new :c:func:`PyImport_GetModule` function returns the previously
imported module with the given name.
(Contributed by Eric Snow in :issue:`28411`.)