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

# http://python.org/sf/1267884

import types

class C:
    __str__ = types.InstanceType.__str__

if __name__ == '__main__':
    str(C())   # segfault: infinite recursion in C