Kaydet (Commit) 872dc5c4 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Minor edits

üst db5860b7
...@@ -51,19 +51,19 @@ method blocks until the flag is true. ...@@ -51,19 +51,19 @@ method blocks until the flag is true.
\begin{classdesc*}{local}{} \begin{classdesc*}{local}{}
A class that represents thread-local data. Thread-local data are data 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 create an instance of \class{local} (or a subclass) and store
attributes on it: attributes on it:
\begin{verbatim} \begin{verbatim}
>>> mydata = threading.local() mydata = threading.local()
>>> mydata.x = 1 mydata.x = 1
\end{verbatim} \end{verbatim}
The instance's values will be different for separate threads. The instance's values will be different for separate threads.
For more details and extensive examples, see the documentation string For more details and extensive examples, see the documentation string
of the _threading_local module. of the \module{_threading_local} module.
\versionadded{2.4} \versionadded{2.4}
\end{classdesc*} \end{classdesc*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment