This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blueyed
Recipients andrei.avk, blueyed, kj, miss-islington, pablogsal, terry.reedy
Date 2021-10-10.14:22:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633875762.29.0.351281010029.issue45249@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2021-10-10 14:22:42blueyedsetrecipients: + blueyed, terry.reedy, pablogsal, miss-islington, kj, andrei.avk
2021-10-10 14:22:42blueyedsetmessageid: <1633875762.29.0.351281010029.issue45249@roundup.psfhosted.org>
2021-10-10 14:22:42blueyedlinkissue45249 messages
2021-10-10 14:22:42blueyedcreate