]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Classic class that defined ``def __coerce__(self, other): return other, self``
authorBrett Cannon <bcannon@gmail.com>
Tue, 13 Jun 2006 21:50:24 +0000 (21:50 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 13 Jun 2006 21:50:24 +0000 (21:50 +0000)
commitdf43ce33fb0a1720c986d82cafb0be8cf60ba844
tree68bb8c21d14f29f2a92179c799c4ef7f60b9fc40
parentb94051562c4dfcb60341bfcb2fbd558e3639703f
Classic class that defined ``def __coerce__(self, other): return other, self``
would infinitely recourse and segfault the interpreter.  Now a recursion check
occurs after a coercion.

Backport of fix for bug #992017.
Misc/NEWS
Objects/classobject.c