diff options
author | Vinodhini Balusamy <me.vinob@gmail.com> | 2019-05-14 12:11:41 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-14 12:11:41 (GMT) |
commit | c0a1a07c7e9814cad79cce3580c16284b2df7f52 (patch) | |
tree | 526bd3bde1e3a45389b7a4e0de62083dfb1888a7 /Doc/glossary.rst | |
parent | dae1229729920e3aa2be015453b7f702dff9b375 (diff) | |
download | cpython-c0a1a07c7e9814cad79cce3580c16284b2df7f52.zip cpython-c0a1a07c7e9814cad79cce3580c16284b2df7f52.tar.gz cpython-c0a1a07c7e9814cad79cce3580c16284b2df7f52.tar.bz2 |
bpo-32995 - Added context variable in glossary (GH-9741)
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r-- | Doc/glossary.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 9c64e48..d3ce365 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -225,6 +225,15 @@ Glossary statement by defining :meth:`__enter__` and :meth:`__exit__` methods. See :pep:`343`. + context variable + A variable which can have different values depending on its context. + This is similar to Thread-Local Storage in which each execution + thread may have a different value for a variable. However, with context + variables, there may be several contexts in one execution thread and the + main usage for context variables is to keep track of variables in + concurrent asynchronous tasks. + See :mod:`contextvars`. + contiguous .. index:: C-contiguous, Fortran contiguous |