[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your quick pull request, Dennis! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0a08f22184aef6e36bb8bb7ad84207e47594f46e by Miss Islington (bot) in branch '3.9': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (#27325) https://github.com/python/cpython/commit/0a08f22184aef6e36bb8bb7ad842

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 659030c7d56a329c1aa559678f2df15e306215e4 by Miss Islington (bot) in branch '3.10': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (GH-27324) https://github.com/python/cpython/commit/659030c7d56a329c1aa559678

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25869 pull_request: https://github.com/python/cpython/pull/27325 ___ Python tracker ___ __

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5370f0a82aaa4ba617070d5c71d2b18236096ac0 by Dennis Sweeney in branch 'main': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) https://github.com/python/cpython/commit/5370f0a82aaa4ba617070d5c71d2b18236096ac0

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25868 pull_request: https://github.com/python/cpython/pull/27324 ___ Python tracker _

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-23 Thread Dennis Sweeney
Dennis Sweeney 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 iterat