[pypy-svn] r71461 - in pypy/trunk/pypy: interpreter module/exceptions
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Feb 24 18:16:24 CET 2010
Author: cfbolz
Date: Wed Feb 24 18:16:22 2010
New Revision: 71461
Modified:
pypy/trunk/pypy/interpreter/function.py
pypy/trunk/pypy/module/exceptions/interp_exceptions.py
Log:
Those things should really be instance dictionaries, though I guess it doesn't
matter much for the dict of functions.
Modified: pypy/trunk/pypy/interpreter/function.py
==============================================================================
--- pypy/trunk/pypy/interpreter/function.py (original)
+++ pypy/trunk/pypy/interpreter/function.py Wed Feb 24 18:16:22 2010
@@ -178,7 +178,7 @@
def getdict(self):
if self.w_func_dict is None:
- self.w_func_dict = self.space.newdict()
+ self.w_func_dict = self.space.newdict(instance=True)
return self.w_func_dict
def setdict(self, space, w_dict):
Modified: pypy/trunk/pypy/module/exceptions/interp_exceptions.py
==============================================================================
--- pypy/trunk/pypy/module/exceptions/interp_exceptions.py (original)
+++ pypy/trunk/pypy/module/exceptions/interp_exceptions.py Wed Feb 24 18:16:22 2010
@@ -137,7 +137,7 @@
def getdict(self):
if self.w_dict is None:
- self.w_dict = self.space.newdict()
+ self.w_dict = self.space.newdict(instance=True)
return self.w_dict
def setdict(self, space, w_dict):
More information about the Pypy-commit
mailing list