Message279754
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:06 | eric.smith | set | recipients:
+ 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:06 | eric.smith | set | messageid: <1477875486.36.0.965399542017.issue28128@psf.upfronthosting.co.za> |
2016-10-31 00:58:06 | eric.smith | link | issue28128 messages |
2016-10-31 00:58:05 | eric.smith | create | |
|