[pypy-svn] rev 785 - pypy/trunk/src/pypy/objspace/std

mwh at codespeak.net mwh at codespeak.net
Sat Jun 7 20:57:04 CEST 2003


Author: mwh
Date: Sat Jun  7 20:57:03 2003
New Revision: 785

Modified:
   pypy/trunk/src/pypy/objspace/std/tupleobject.py
Log:
slimy tuple.__repr__


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	Sat Jun  7 20:57:03 2003
@@ -100,3 +100,9 @@
     return space.w_True
 
 StdObjSpace.eq.register(tuple_eq, W_TupleObject, W_TupleObject)
+
+def tuple_repr(space, w_tuple):
+    # XXX slimy! --mwh
+    return space.wrap(repr(space.unwrap(w_tuple)))
+
+StdObjSpace.repr.register(tuple_repr, W_TupleObject)


More information about the Pypy-commit mailing list