Message279754
| 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 | <1477875486.36.0.965399542017.issue28128@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |