commit | 0b14f243c4ba95db67604261131400cd92736df9 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sun Sep 30 19:45:10 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sun Sep 30 19:45:10 2007 +0000 |
tree | 03615f5cc52920c164cac1bd6cef55412f95aeed | |
parent | c537881caab4d63e34b7424459c3822292ad2375 [diff] |
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.