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 brett.cannon
Recipients anish.shah, brett.cannon, giampaolo.rodola, marco.buttu, yselivanov
Date 2016-02-13.04:19:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455337147.45.0.846629747446.issue26182@psf.upfronthosting.co.za>
In-reply-to
Content
Because parsing is done before execution you can't flip on warnings during runtime in the file you to be affected.

As for the line number, that's because it's raise in C code that doesn't have a trigger in Python code. Try importing the code and you should get the line number of the import. Otherwise you will have to check if there is some function to specify a syntax warning that lets you set the line number explicitly (I don't think there is).
History
Date User Action Args
2016-02-13 04:19:07brett.cannonsetrecipients: + brett.cannon, giampaolo.rodola, yselivanov, marco.buttu, anish.shah
2016-02-13 04:19:07brett.cannonsetmessageid: <1455337147.45.0.846629747446.issue26182@psf.upfronthosting.co.za>
2016-02-13 04:19:07brett.cannonlinkissue26182 messages
2016-02-13 04:19:06brett.cannoncreate