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