summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/infinite_rec_2.py
blob: 5a14b33eaae945c0901a6f3dbce62f5a407bb65b (plain)
1
2
3
4
5
6
7
8
9
10

# 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