[pypy-svn] r68730 - pypy/trunk/pypy/objspace/std
fijal at codespeak.net
fijal at codespeak.net
Sat Oct 24 17:28:53 CEST 2009
Author: fijal
Date: Sat Oct 24 17:28:53 2009
New Revision: 68730
Modified:
pypy/trunk/pypy/objspace/std/celldict.py
Log:
avoid unnecessary indirection
Modified: pypy/trunk/pypy/objspace/std/celldict.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/celldict.py (original)
+++ pypy/trunk/pypy/objspace/std/celldict.py Sat Oct 24 17:28:53 2009
@@ -235,7 +235,7 @@
name = f.space.str_w(f.getname_w(nameindex))
implementation = getimplementation(f.w_globals)
if isinstance(implementation, ModuleDictImplementation):
- cell = find_cell_from_dict(implementation, name)
+ cell = implementation.getcell(name, False)
if cell is None:
builtin_impl = getimplementation(f.get_builtin().getdict())
cell = find_cell_from_dict(builtin_impl, name)
More information about the Pypy-commit
mailing list