[pypy-svn] r41829 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Mon Apr 2 22:13:54 CEST 2007
Author: arigo
Date: Mon Apr 2 22:13:51 2007
New Revision: 41829
Modified:
pypy/dist/pypy/objspace/std/typeobject.py
Log:
A comment.
Modified: pypy/dist/pypy/objspace/std/typeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/typeobject.py (original)
+++ pypy/dist/pypy/objspace/std/typeobject.py Mon Apr 2 22:13:51 2007
@@ -267,6 +267,8 @@
w_value = w_self.dict_w.get(attr, None)
if w_self.lazyloaders and w_value is None:
if attr in w_self.lazyloaders:
+ # very clever next line: it forces the attr string
+ # to be interned.
w_attr = space.new_interned_str(attr)
loader = w_self.lazyloaders[attr]
del w_self.lazyloaders[attr]
More information about the Pypy-commit
mailing list