[issue33930] Segfault with deep recursion into object().__dir__

Serhiy Storchaka report at bugs.python.org
Mon Jun 25 08:15:00 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The trashcan mechanism is used for slot wrappers. The following code doesn't crash:

o = object()
for x in range(1000000):
    o = o.__hash__

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33930>
_______________________________________


More information about the Python-bugs-list mailing list