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 eric.smith
Recipients Tim.Graham, abarry, eric.smith, ezio.melotti, martin.panter, ncoghlan, ned.deily, petr.viktorin, r.david.murray, rhettinger, serhiy.storchaka, yan12125, yselivanov
Date 2016-10-31.00:58:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's an updated patch, that fixes some problems with the earlier patch, and adds equivalent support for bytes.

HOWEVER, I can't get the warnings machinery to raise a DeprecationWarning that would have all of the equivalent information that an actual SyntaxError would have. So this patch still raises SyntaxError, but with a better error context.

I'm going to keep plugging away at this, but I'm hoping that someone with more experience with warnings using the C-API can chime in with some advice. Given the tight deadline, I can use all of the help I can get.

The two functions that need help are decode_bytes_with_escapes and decode_unicode_with_escapes in ast.c.
Date User Action Args
2016-10-31 00:58:06eric.smithsetrecipients: + eric.smith, rhettinger, ncoghlan, ned.deily, ezio.melotti, r.david.murray, petr.viktorin, martin.panter, serhiy.storchaka, yselivanov, Tim.Graham, yan12125, abarry
2016-10-31 00:58:06eric.smithsetmessageid: <>
2016-10-31 00:58:06eric.smithlinkissue28128 messages
2016-10-31 00:58:05eric.smithcreate