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 stefan
Recipients benjamin.peterson, brett.cannon, ncoghlan, stefan, yselivanov
Date 2017-05-29.12:18:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496060304.88.0.0534441608916.issue30496@psf.upfronthosting.co.za>
In-reply-to
Content
Some further experiements:

Replacing the `exec(f.read(), env)` line by
```
code = compile(f.read(), 'script', 'exec')
exec(code, env)
```
exhibits the same behaviour. If I remove the `try...except`, the correct
(full) traceback is printed out. So it looks like the issue is with the traceback propagation through exception handlers when the error happens during parsing.
History
Date User Action Args
2017-05-29 12:18:24stefansetrecipients: + stefan, brett.cannon, ncoghlan, benjamin.peterson, yselivanov
2017-05-29 12:18:24stefansetmessageid: <1496060304.88.0.0534441608916.issue30496@psf.upfronthosting.co.za>
2017-05-29 12:18:24stefanlinkissue30496 messages
2017-05-29 12:18:24stefancreate