Dennis Sweeney <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue44720>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com