Skip to content

Commit c0a1a07

Browse files
vinu2003csabella
authored andcommitted
bpo-32995 - Added context variable in glossary (GH-9741)
1 parent dae1229 commit c0a1a07

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Doc/glossary.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ Glossary
225225
statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
226226
See :pep:`343`.
227227

228+
context variable
229+
A variable which can have different values depending on its context.
230+
This is similar to Thread-Local Storage in which each execution
231+
thread may have a different value for a variable. However, with context
232+
variables, there may be several contexts in one execution thread and the
233+
main usage for context variables is to keep track of variables in
234+
concurrent asynchronous tasks.
235+
See :mod:`contextvars`.
236+
228237
contiguous
229238
.. index:: C-contiguous, Fortran contiguous
230239

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added the context variable in glossary.

0 commit comments

Comments
 (0)