[pypy-svn] r73107 - pypy/branch/reduce-instance-size-experiments/pypy/objspace/std
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon Mar 29 19:22:41 CEST 2010
Author: cfbolz
Date: Mon Mar 29 19:22:40 2010
New Revision: 73107
Modified:
pypy/branch/reduce-instance-size-experiments/pypy/objspace/std/sharingdict.py
Log:
small tweak
Modified: pypy/branch/reduce-instance-size-experiments/pypy/objspace/std/sharingdict.py
==============================================================================
--- pypy/branch/reduce-instance-size-experiments/pypy/objspace/std/sharingdict.py (original)
+++ pypy/branch/reduce-instance-size-experiments/pypy/objspace/std/sharingdict.py Mon Mar 29 19:22:40 2010
@@ -103,8 +103,9 @@
if w_value is None:
return erase(w_value)
if space.is_true(space.isinstance(w_value, space.w_int)):
+ val = space.int_w(w_value)
try:
- return erase(space.int_w(w_value))
+ return erase(val)
except OverflowError:
pass
return erase(w_value)
More information about the Pypy-commit
mailing list