Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libthreading.tex @ 32718:1bd3383bad98 legacy-trunk
Minor edits
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Sat, 17 Jul 2004 13:35:43 +0000 |
| parents | 97768d87394a |
| children | 21251e221e56 |
line wrap: on
line diff
--- a/Doc/lib/libthreading.tex Sat Jul 17 05:00:52 2004 +0000 +++ b/Doc/lib/libthreading.tex Sat Jul 17 13:35:43 2004 +0000 @@ -51,19 +51,19 @@ \begin{classdesc*}{local}{} A class that represents thread-local data. Thread-local data are data -who's values are thread specific. To manage thread-local data, just +whose values are thread specific. To manage thread-local data, just create an instance of \class{local} (or a subclass) and store attributes on it: \begin{verbatim} - >>> mydata = threading.local() - >>> mydata.x = 1 +mydata = threading.local() +mydata.x = 1 \end{verbatim} The instance's values will be different for separate threads. For more details and extensive examples, see the documentation string -of the _threading_local module. +of the \module{_threading_local} module. \versionadded{2.4} \end{classdesc*}
