]> granicus.if.org Git - python/commit
tuple.__repr__ did not consider a reference loop as it is not possible from
authorBrett Cannon <bcannon@gmail.com>
Sun, 30 Sep 2007 19:45:10 +0000 (19:45 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 30 Sep 2007 19:45:10 +0000 (19:45 +0000)
commit0b14f243c4ba95db67604261131400cd92736df9
tree03615f5cc52920c164cac1bd6cef55412f95aeed
parentc537881caab4d63e34b7424459c3822292ad2375
tuple.__repr__ did not consider a reference loop as it is not possible from
Python code; but it is possible from C.  object.__str__ had the issue of not
expecting a type to doing something within it's tp_str implementation that
could trigger an infinite recursion, but it could in C code..  Both found
thanks to BaseException and how it handles its repr.

Closes issue #1686386.  Thanks to Thomas Herve for taking an initial stab at
coming up with a solution.
Misc/NEWS
Objects/object.c
Objects/tupleobject.c