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

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

import new, operator

class A:
    pass
A.__mul__ = new.instancemethod(operator.mul, None, A)

if __name__ == '__main__':
    A()*2   # segfault: infinite recursion in C