[pypy-svn] r15335 - pypy/dist/pypy/objspace/std
pedronis at codespeak.net
pedronis at codespeak.net
Fri Jul 29 13:21:37 CEST 2005
Author: pedronis
Date: Fri Jul 29 13:21:35 2005
New Revision: 15335
Modified:
pypy/dist/pypy/objspace/std/model.py
Log:
added support to specify general extra_args= for space multimethods
Modified: pypy/dist/pypy/objspace/std/model.py
==============================================================================
--- pypy/dist/pypy/objspace/std/model.py (original)
+++ pypy/dist/pypy/objspace/std/model.py Fri Jul 29 13:21:35 2005
@@ -153,13 +153,14 @@
break
else:
self.name = operatorsymbol
-
+
if extras.get('general__args__', False):
self.argnames_after = ['__args__']
if extras.get('w_varargs', False):
self.argnames_after = ['w_args']
if extras.get('varargs_w', False):
self.argnames_after = ['args_w']
+ self.argnames_after += extras.get('extra_args', [])
def install_not_sliced(self, typeorder, baked_perform_call=True):
return self.install(prefix = '__mm_' + self.name,
More information about the Pypy-commit
mailing list