[pypy-svn] r54283 - pypy/branch/faster-binop/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Wed Apr 30 17:39:26 CEST 2008
Author: arigo
Date: Wed Apr 30 17:39:24 2008
New Revision: 54283
Modified:
pypy/branch/faster-binop/pypy/objspace/std/model.py
Log:
Missing optimization opportunity: "ANY" should not prevent
a user subclass from being accepted in a shortcut mm call.
Modified: pypy/branch/faster-binop/pypy/objspace/std/model.py
==============================================================================
--- pypy/branch/faster-binop/pypy/objspace/std/model.py (original)
+++ pypy/branch/faster-binop/pypy/objspace/std/model.py Wed Apr 30 17:39:24 2008
@@ -260,7 +260,9 @@
subclslist = enum_interplevel_subclasses(cls)
for subcls in subclslist:
if cls in subcls.__bases__: # only direct subclasses
- result[subcls] = []
+ result[subcls] = [(W_Root, None)]
+ # W_Root="ANY" which always matches,
+ # even user subclasses
self._typeorder_with_empty_usersubcls = result
return self._typeorder_with_empty_usersubcls
More information about the Pypy-commit
mailing list