commit | 3fe8216f338317089aa727241f70de71681f2e0a | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sat May 03 01:37:08 2008 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sat May 03 01:37:08 2008 +0000 |
tree | 2c2cf19e81e9df90e3d448dc811a32c2e5b208db | |
parent | 73eada3287c2fc9b2700e2286b8811ae6454a52a [diff] [blame] |
Fixed a bug in the representation of self-referential tuples.
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 9a53cfa..819253c 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c
@@ -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);