Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
00457170
Commit
00457170
authored
Jul 15, 2004
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add thread-local feature
parent
23406894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+18
-1
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
00457170
...
...
@@ -847,12 +847,29 @@ data extractors when used with \function{map()} or
% 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,
arrays, files, sockets, and regular expression pattern objects.
\item
The
\module
{
xmlrpclib
}
module now supports a multi-call extension for
tranmitting multiple XML-RPC calls in a single HTTP operation.
tran
s
mitting multiple XML-RPC calls in a single HTTP operation.
\end{itemize}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment