[pypy-svn] r41619 - pypy/dist/pypy/translator/goal
pedronis at codespeak.net
pedronis at codespeak.net
Thu Mar 29 13:43:49 CEST 2007
Author: pedronis
Date: Thu Mar 29 13:43:47 2007
New Revision: 41619
Modified:
pypy/dist/pypy/translator/goal/ann_override.py
Log:
use the side-effects free versions (may fix some current random annotation problems with --faassen,
when we try to freeze a prebuilt execution context likely created by the method cache code after we try to kill it
in objspace _freeze_ because we don't want to capture it (because of specialized classes etc))
Modified: pypy/dist/pypy/translator/goal/ann_override.py
==============================================================================
--- pypy/dist/pypy/translator/goal/ann_override.py (original)
+++ pypy/dist/pypy/translator/goal/ann_override.py Thu Mar 29 13:43:47 2007
@@ -76,14 +76,14 @@
def attach_lookup(pol, t, attr):
cached = "cached_%s" % attr
if not t.is_heaptype():
- setattr(t, cached, t.lookup(attr))
+ setattr(t, cached, t._lookup(attr))
return True
return False
def attach_lookup_in_type_where(pol, t, attr):
cached = "cached_where_%s" % attr
if not t.is_heaptype():
- setattr(t, cached, t.lookup_where(attr))
+ setattr(t, cached, t._lookup_where(attr))
return True
return False
More information about the Pypy-commit
mailing list