[pypy-svn] rev 483 - pypy/trunk/src/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Mon May 26 19:37:51 CEST 2003
Author: arigo
Date: Mon May 26 19:37:51 2003
New Revision: 483
Modified:
pypy/trunk/src/pypy/objspace/std/tupleobject.py
Log:
tuple+tuple
Modified: pypy/trunk/src/pypy/objspace/std/tupleobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/tupleobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/tupleobject.py Mon May 26 19:37:51 2003
@@ -46,3 +46,10 @@
return iterobject.W_SeqIterObject(w_tuple)
StdObjSpace.iter.register(tuple_iter, W_TupleObject)
+
+def tuple_add(space, w_tuple1, w_tuple2):
+ items1 = w_tuple1.wrappeditems
+ items2 = w_tuple2.wrappeditems
+ return W_TupleObject(items1 + items2)
+
+StdObjSpace.add.register(tuple_add, W_TupleObject, W_TupleObject)
More information about the Pypy-commit
mailing list