Message393083
Consider this function, which has a syntax error on line 4.
>>> def f():
... try:
... 1/0
... except:
... pass
... except Exception:
... pass
3.9 reports an incorrect line number of 3.
3.10b reports an even more incorrect line number of -1.
Although I've marked this as a "Parser" bug, the offending code is in the compiler.
For 3.11, this is fixed by https://github.com/python/cpython/pull/25729 |
|
Date |
User |
Action |
Args |
2021-05-06 11:31:28 | Mark.Shannon | set | recipients:
+ Mark.Shannon, lys.nikolaou, pablogsal |
2021-05-06 11:31:28 | Mark.Shannon | set | messageid: <1620300688.24.0.928024360805.issue44056@roundup.psfhosted.org> |
2021-05-06 11:31:28 | Mark.Shannon | link | issue44056 messages |
2021-05-06 11:31:28 | Mark.Shannon | create | |
|