Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Reported here:#120330 (comment)
classFoo:def__iter__(self):assertFalsea= [xforxinFoo()]
output (Python 3.12.5):
Traceback (mostrecentcalllast):File"/home/frank/projects/executing/codi.py",line5,in<module>a= [xforxinFoo()]^^^^^^^^^^^^^^^^^^File"/home/frank/projects/executing/codi.py",line3,in__iter__assertFalse^^^^^AssertionError
Linked PRs
- gh-123142: Fix too wide source locations in tracebacks of exceptions from broken iterables in comprehensions #123173
- [3.13] gh-123142: Fix too wide source locations in tracebacks of exceptions from broken iterables in comprehensions (GH-123173). #123209
- [3.12] gh-123142: Fix too wide source locations in tracebacks of exceptions from broken iterables in comprehensions (GH-123173). #123210
- gh-123142: fix too wide source location of GET_ITER/GET_AITER #123420
- [3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). #123435
- [3.12] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). #123436