[issue44720] Weakref proxy crashes on null tp_iternext slot.

Dennis Sweeney report at bugs.python.org
Fri Jul 23 22:21:45 EDT 2021


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

Here's a simpler reproducer:

        not_an_iterator = lambda: 0

        class A:
            def __iter__(self):
                return weakref.proxy(not_an_iterator)
        a = A()
        list(a)

I opened a PR.

----------
title: Finding string in iteratively deleted object cause segfault -> Weakref proxy crashes on null tp_iternext slot.

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


More information about the Python-bugs-list mailing list