mirror of https://github.com/python/cpython.git
bpo-32995 - Added context variable in glossary (GH-9741)
This commit is contained in:
parent
dae1229729
commit
c0a1a07c7e
|
@ -225,6 +225,15 @@ Glossary
|
||||||
statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
|
statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
|
||||||
See :pep:`343`.
|
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
|
contiguous
|
||||||
.. index:: C-contiguous, Fortran contiguous
|
.. index:: C-contiguous, Fortran contiguous
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Added the context variable in glossary.
|
Loading…
Reference in New Issue