[New-bugs-announce] [Issue 101400] The following code snippet generates a stacktrace exception pointing to a invalid line number (-1):```pythonwith object() as obj: break```Example:```bash$ echo 'with object() as obj:\n\tbreak' > main.py$ python main.py File "/home/kartz/main.py", line -1SyntaxError: 'break' outside loop```This is reproducible with Python 3.10, 3.11 and latest [master](https://github.com/python/cpython/commit/666c0840dcac9941fa41ec619fef8d45cd849a0b). I could not reproduce this on Python versions older than <3.10.
github at mg.python.org
Sat Jan 28 20:43:26 EST 2023
An HTML attachment was scrubbed...
More information about the New-bugs-announce