diff Objects/tupleobject.c @ 46635:fd27ac5fcc81

Fixed a bug in the representation of self-referential tuples.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Sat, 03 May 2008 01:37:08 +0000
parents 7c4c46342137
children f6726f32ef70
line wrap: on
line diff
--- a/Objects/tupleobject.c	Fri May 02 01:19:50 2008 +0000
+++ b/Objects/tupleobject.c	Sat May 03 01:37:08 2008 +0000
@@ -201,7 +201,7 @@
 	   possible within a type. */
 	i = Py_ReprEnter((PyObject *)v);
 	if (i != 0) {
-		return i > 0 ? PyString_FromString("(...)") : NULL;
+		return i > 0 ? PyUnicode_FromString("(...)") : NULL;
 	}
 
 	pieces = PyTuple_New(n);