[pypy-svn] r19438 - pypy/dist/pypy/objspace/std

pedronis at codespeak.net pedronis at codespeak.net
Wed Nov 2 17:50:09 CET 2005


Author: pedronis
Date: Wed Nov  2 17:50:08 2005
New Revision: 19438

Modified:
   pypy/dist/pypy/objspace/std/listobject.py
Log:
defensive __repr__



Modified: pypy/dist/pypy/objspace/std/listobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listobject.py	(original)
+++ pypy/dist/pypy/objspace/std/listobject.py	Wed Nov  2 17:50:08 2005
@@ -17,8 +17,7 @@
 
     def __repr__(w_self):
         """ representation for debugging purposes """
-        reprlist = [repr(w_item) for w_item in w_self.wrappeditems]
-        return "%s(%s)" % (w_self.__class__.__name__, ', '.join(reprlist))
+        return "%s(%s)" % (w_self.__class__.__name__, w_self.wrappeditems)
 
     def unwrap(w_list):
         space = w_list.space



More information about the Pypy-commit mailing list