mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fixed a bug in the representation of self-referential tuples.
This commit is contained in:
parent
73eada3287
commit
3fe8216f33
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ tuplerepr(PyTupleObject *v)
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue