[Python-checkins]
python/dist/src/Doc/whatsnew whatsnew24.tex, 1.68, 1.69
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Thu Jul 15 13:52:43 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16985
Modified Files:
whatsnew24.tex
Log Message:
Add thread-local feature
Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** whatsnew24.tex 15 Jul 2004 11:44:42 -0000 1.68
--- whatsnew24.tex 15 Jul 2004 11:52:40 -0000 1.69
***************
*** 848,851 ****
--- 848,868 ----
% XXX sre is now non-recursive.
+ \item The \module{threading} module now has an elegantly simple way to support
+ thread-local data. The module contains a \class{local} class whose
+ attribute values are local to different threads.
+
+ \begin{verbatim}
+ import threading
+
+ data = threading.local()
+ data.number = 42
+ data.url = ('www.python.org', 80)
+ \end{verbatim}
+
+ Other threads can assign and retrieve their own values for the
+ \member{number} and \member{url} attributes. You can subclass
+ \class{local} to initialize attributes or to add methods.
+ (Contributed by Jim Fulton.)
+
\item The \module{weakref} module now supports a wider variety of objects
including Python functions, class instances, sets, frozensets, deques,
***************
*** 853,857 ****
\item The \module{xmlrpclib} module now supports a multi-call extension for
! tranmitting multiple XML-RPC calls in a single HTTP operation.
\end{itemize}
--- 870,874 ----
\item The \module{xmlrpclib} module now supports a multi-call extension for
! transmitting multiple XML-RPC calls in a single HTTP operation.
\end{itemize}
More information about the Python-checkins
mailing list