Dennis Sweeney <sweeney.dennis...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44720>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to