# Bug report Reported here: https://github.com/python/cpython/pull/120330#issuecomment-2295256627 ```python class Foo: def __iter__(self): assert False a = [x for x in Foo()] ``` output (Python 3.12.5): ```python Traceback (most recent call last): File "/home/frank/projects/executing/codi.py", line 5, in <module> a = [x for x in Foo()] ^^^^^^^^^^^^^^^^^^ File "/home/frank/projects/executing/codi.py", line 3, in __iter__ assert False ^^^^^ AssertionError ``` <!-- gh-linked-prs --> ### Linked PRs * gh-123173 * gh-123209 * gh-123210 * gh-123420 * gh-123435 * gh-123436 <!-- /gh-linked-prs -->
Bug report
Reported here: #120330 (comment)
output (Python 3.12.5):
Linked PRs