Xinmeng Xia <[email protected]> added the comment:
Thank you. But I am not sure this is a recursion problem. Please see the
following example, I replace "__sizeof__" with "__class__". No segmentation
fault. Everything goes well.
========================
mystr = "hello123"
print(dir(mystr))
for x in range(1000000):
mystr = mystr.__class__
print(mystr)
=========================
and
=========================
mystr = "hello123"
for x in range(1000000):
mystr = mystr.__class__
input('>') # Hit Enter to continue.
del mystr # Expect crash here.
input('<') # And never get here
=========================
No segmentation fault
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42887>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com