[pypy-svn] r35230 - pypy/branch/jit-real-world/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Sun Dec 3 23:16:44 CET 2006


Author: arigo
Date: Sun Dec  3 23:16:40 2006
New Revision: 35230

Modified:
   pypy/branch/jit-real-world/pypy/objspace/std/multimethod.py
Log:
Forgot to check this in with r35224.


Modified: pypy/branch/jit-real-world/pypy/objspace/std/multimethod.py
==============================================================================
--- pypy/branch/jit-real-world/pypy/objspace/std/multimethod.py	(original)
+++ pypy/branch/jit-real-world/pypy/objspace/std/multimethod.py	Sun Dec  3 23:16:40 2006
@@ -40,20 +40,22 @@
         lst[order] = function
 
     def install(self, prefix, list_of_typeorders, baked_perform_call=True,
-                base_typeorder=None):
+                base_typeorder=None, installercls=None):
         "NOT_RPYTHON: initialization-time only"
         assert len(list_of_typeorders) == self.arity
-        installer = Installer(self, prefix, list_of_typeorders,
-                              baked_perform_call=baked_perform_call,
-                              base_typeorder=base_typeorder)
+        installercls = installercls or Installer
+        installer = installercls(self, prefix, list_of_typeorders,
+                                 baked_perform_call=baked_perform_call,
+                                 base_typeorder=base_typeorder)
         return installer.install()
 
     def install_if_not_empty(self, prefix, list_of_typeorders,
-                             base_typeorder=None):
+                             base_typeorder=None, installercls=None):
         "NOT_RPYTHON: initialization-time only"
         assert len(list_of_typeorders) == self.arity
-        installer = Installer(self, prefix, list_of_typeorders,
-                              base_typeorder=base_typeorder)
+        installercls = installercls or Installer
+        installer = installercls(self, prefix, list_of_typeorders,
+                                 base_typeorder=base_typeorder)
         if installer.is_empty():
             return None
         else:



More information about the Pypy-commit mailing list