Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Disabling the trashcan mechanism returns the problem for solving which the trashcan mechanism was introduced. >>> from _testcapi import MyList >>> L = None >>> for i in range(1000000): ... L = MyList((L,)) ... >>> del L Segmentation fault (core dumped) I think we need better way to resolve this issue. For example, setting the object type to the parent type should solve this issue. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35983> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com