[pypy-svn] r15334 - pypy/dist/pypy/objspace/std
pedronis at codespeak.net
pedronis at codespeak.net
Fri Jul 29 13:20:18 CEST 2005
Author: pedronis
Date: Fri Jul 29 13:20:16 2005
New Revision: 15334
Modified:
pypy/dist/pypy/objspace/std/multimethod.py
Log:
be careful with list default args
Modified: pypy/dist/pypy/objspace/std/multimethod.py
==============================================================================
--- pypy/dist/pypy/objspace/std/multimethod.py (original)
+++ pypy/dist/pypy/objspace/std/multimethod.py Fri Jul 29 13:20:16 2005
@@ -22,8 +22,8 @@
self.arity = arity
self.root_class = root_class
self.dispatch_tree = {}
- self.argnames_before = argnames_before
- self.argnames_after = argnames_after
+ self.argnames_before = list(argnames_before)
+ self.argnames_after = list(argnames_after)
def register(self, function, *types, **kwds):
assert len(types) == self.arity
More information about the Pypy-commit
mailing list