cpython/Lib/test/crashers/coerce.py
Neal Norwitz 8cc4ef561c As I threatened on python-dev, add a directory which contains all known
bugs which cause the interpreter to crash.  I'm sure we can find a few
more.  Many missing bugs deal with variations on unchecked infinite recursion
(like coerce.py).
2006-01-10 07:49:41 +00:00

9 lines
181 B
Python

# http://python.org/sf/992017
class foo:
def __coerce__(self, other):
return other, self
if __name__ == '__main__':
foo()+1 # segfault: infinite recursion in C