Message403588
I've noticed a regression/change with the code change for this issue.
When not catching the exception from `compile("invalid(", "<stdin>", "single")` it has a caret below the opening parenthesis:
```
Traceback (most recent call last):
File "…/t-syntaxerror-chained.py", line 2, in <module>
compile("invalid(", "<stdin>", "single")
File "<stdin>", line 1
invalid(
^
SyntaxError: '(' was never closed
```
When using `traceback.print_exc` however this is missing:
```
Traceback (most recent call last):
File "…/t-syntaxerror-chained.py", line 2, in <module>
compile("invalid(", "<stdin>", "single")
File "<stdin>", line 1
invalid(
SyntaxError: '(' was never closed
```
The file used for testing:
```
try:
compile("invalid(", "<stdin>", "single")
except Exception:
# raise
__import__("traceback").print_exc()
```
(this change was noticed between 3.10.0rc2 and the final release with pdbpp's test suite)
I've not investigated further (yet), and also feel free to ask for creating a new issue, but I've figured it would be good to notify you here first (where the code was changed). |
|
Date |
User |
Action |
Args |
2021-10-10 14:22:42 | blueyed | set | recipients:
+ blueyed, terry.reedy, pablogsal, miss-islington, kj, andrei.avk |
2021-10-10 14:22:42 | blueyed | set | messageid: <1633875762.29.0.351281010029.issue45249@roundup.psfhosted.org> |
2021-10-10 14:22:42 | blueyed | link | issue45249 messages |
2021-10-10 14:22:42 | blueyed | create | |
|