[pypy-svn] r72390 - pypy/trunk/pypy/rpython
afa at codespeak.net
afa at codespeak.net
Thu Mar 18 17:50:10 CET 2010
Author: afa
Date: Thu Mar 18 17:50:08 2010
New Revision: 72390
Modified:
pypy/trunk/pypy/rpython/rclass.py
Log:
Simplify the identity_dict: no need to store the key in the value!
Modified: pypy/trunk/pypy/rpython/rclass.py
==============================================================================
--- pypy/trunk/pypy/rpython/rclass.py (original)
+++ pypy/trunk/pypy/rpython/rclass.py Thu Mar 18 17:50:08 2010
@@ -223,11 +223,11 @@
def convert_const_exact(self, value):
try:
- return self.iprebuiltinstances[value][1]
+ return self.iprebuiltinstances[value]
except KeyError:
self.setup()
result = self.create_instance()
- self.iprebuiltinstances[value] = value, result
+ self.iprebuiltinstances[value] = result
self.initialize_prebuilt_instance(value, self.classdef, result)
return result
More information about the Pypy-commit
mailing list