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 abarry
Recipients Tim.Graham, abarry, brett.cannon, martin.panter, ncoghlan, ned.deily, r.david.murray, rhettinger, serhiy.storchaka, yan12125, yselivanov
Date 2016-09-16.02:01:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473991267.33.0.616200493157.issue28128@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you Nick for the useful feedback! I think that a subclass of DeprecationWarning and SyntaxWarning would be a good idea; I'll play around with that.

As far as when the warning should occur, I agree that erroring out at the compile step isn't optimal, however (AFAIK) strings aren't checked again once they've been created; they're assumed to be correct (and checking them at runtime would presumably add a performance hit to *all* strings, which I think is too big a price to pay).

On the other hand, a way to ignore invalid escapes in certain files could be considered, but we need to be somewhat careful since some people might choose to silence all warnings, thus defeating the purpose.
History
Date User Action Args
2016-09-16 02:01:07abarrysetrecipients: + abarry, brett.cannon, rhettinger, ncoghlan, ned.deily, r.david.murray, martin.panter, serhiy.storchaka, yselivanov, Tim.Graham, yan12125
2016-09-16 02:01:07abarrysetmessageid: <1473991267.33.0.616200493157.issue28128@psf.upfronthosting.co.za>
2016-09-16 02:01:07abarrylinkissue28128 messages
2016-09-16 02:01:06abarrycreate