[pypy-svn] r73220 - pypy/trunk/pypy/objspace/std
benjamin at codespeak.net
benjamin at codespeak.net
Wed Mar 31 17:36:32 CEST 2010
Author: benjamin
Date: Wed Mar 31 17:36:30 2010
New Revision: 73220
Modified:
pypy/trunk/pypy/objspace/std/objspace.py
pypy/trunk/pypy/objspace/std/register_all.py
Log:
extra comparisons must be added each time multimethods are registered
Modified: pypy/trunk/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/objspace.py (original)
+++ pypy/trunk/pypy/objspace/std/objspace.py Wed Mar 31 17:36:30 2010
@@ -89,7 +89,6 @@
def _install_multimethods(self):
"""Install all the MultiMethods into the space instance."""
- model.add_extra_comparisons()
for name, mm in model.MM.__dict__.items():
if not isinstance(mm, model.StdObjSpaceMultiMethod):
continue
Modified: pypy/trunk/pypy/objspace/std/register_all.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/register_all.py (original)
+++ pypy/trunk/pypy/objspace/std/register_all.py Wed Mar 31 17:36:30 2010
@@ -44,6 +44,8 @@
func = hack_func_by_name(funcname, namespaces)
func.register(obj, *l)
+ model.add_extra_comparisons()
+
def hack_func_by_name(funcname, namespaces):
for ns in namespaces:
More information about the Pypy-commit
mailing list