daniel hahler <python-b...@thequod.de> added the comment: 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). ---------- nosy: +blueyed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45249> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com