[pypy-svn] pypy default: The default thread should also get an instance dict for thread locals.
alex_gaynor
commits-noreply at bitbucket.org
Sat Apr 2 20:33:46 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r43120:b43534d1019d
Date: 2011-04-02 14:33 -0400
http://bitbucket.org/pypy/pypy/changeset/b43534d1019d/
Log: The default thread should also get an instance dict for thread
locals.
diff --git a/pypy/module/thread/os_local.py b/pypy/module/thread/os_local.py
--- a/pypy/module/thread/os_local.py
+++ b/pypy/module/thread/os_local.py
@@ -12,7 +12,7 @@
def __init__(self, space, initargs):
self.initargs = initargs
ident = thread.get_ident()
- self.dicts = {ident: space.newdict()}
+ self.dicts = {ident: space.newdict(instance=True)}
def getdict(self, space):
ident = thread.get_ident()
More information about the Pypy-commit
mailing list