[pypy-svn] r59327 - pypy/trunk/pypy/objspace/std

iko at codespeak.net iko at codespeak.net
Thu Oct 23 01:32:47 CEST 2008


Author: iko
Date: Thu Oct 23 01:32:45 2008
New Revision: 59327

Modified:
   pypy/trunk/pypy/objspace/std/tupleobject.py
Log:
Dont short-circuit subtype_of_tuple * 1



Modified: pypy/trunk/pypy/objspace/std/tupleobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/tupleobject.py	(original)
+++ pypy/trunk/pypy/objspace/std/tupleobject.py	Thu Oct 23 01:32:45 2008
@@ -80,7 +80,7 @@
         if e.match(space, space.w_TypeError):
             raise FailedToImplement
         raise
-    if times == 1:
+    if times == 1 and space.type(w_tuple) == space.w_tuple:
         return w_tuple
     items = w_tuple.wrappeditems
     return W_TupleObject(items * times)    



More information about the Pypy-commit mailing list