cpython/Lib/test/crashers/infinite_rec_2.py

11 lines
170 B
Python
Raw Normal View History

# http://python.org/sf/1202533
class A(str):
__get__ = getattr
if __name__ == '__main__':
a = A('a')
A.a = a
a.a # segfault: infinite recursion in C