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 serhiy.storchaka
Recipients benjamin.peterson, brett.cannon, ncoghlan, serhiy.storchaka, stefan, yselivanov
Date 2017-05-29.17:56:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496080589.3.0.0455566659616.issue30496@psf.upfronthosting.co.za>
In-reply-to
Content
The traceback contain the location of the code that raised an exception when executed. In case of NameError this is a line in your script "x=u". In case of SyntaxError the code that failed is not in your script (it still is not executed), but in a compiler implicitly called by exec(). The line with exec() is correctly reported.

The behavior looks correct to me.
History
Date User Action Args
2017-05-29 17:56:29serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, stefan, ncoghlan, benjamin.peterson, yselivanov
2017-05-29 17:56:29serhiy.storchakasetmessageid: <1496080589.3.0.0455566659616.issue30496@psf.upfronthosting.co.za>
2017-05-29 17:56:29serhiy.storchakalinkissue30496 messages
2017-05-29 17:56:29serhiy.storchakacreate