Skip to content

Commit 0895e20

Browse files
committed
Added context variable in glossary
1 parent 7dfbd49 commit 0895e20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/glossary.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ Glossary
221221
statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
222222
See :pep:`343`.
223223

224+
context variable
225+
A variable which can have different values depending on it's context.
226+
This is similar to TLS(Thread Local Storage) in which each execution
227+
thread may have a different value for a variable. In case of context
228+
variable, there may be sevaral contexts in one execution thread and it is
229+
used to keep track of variables in concurrent asynchronous tasks.
230+
See :pep:`567`.
231+
224232
contiguous
225233
.. index:: C-contiguous, Fortran contiguous
226234

0 commit comments

Comments
 (0)