Plan 9 from Bell Labs’s /usr/web/sources/contrib/bichued/root/sys/lib/python/test/crashers/infinite_rec_1.py

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



# 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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.