summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/coerce.py
blob: 574956b228eff8d9f6914e692ad549135eabf2e9 (plain)
1
2
3
4
5
6
7
8
9

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

class foo:
    def __coerce__(self, other):
        return other, self

if __name__ == '__main__':
    foo()+1   # segfault: infinite recursion in C