Message334011
Following `from __future__ import unicode_literals` the expression `eval(" 'foo' ")` will return a `unicode` instance. However, using the same input, `ast.literal_eval(" 'foo' ")` will return a `str` instance. The caller's preference, that those plain single-quotes should a denote unicode literal, is respected by `eval()` but not by `ast.literal_eval()`. I propose that `ast.literal_eval()` be made sensitive to this preference, to bring it in line with `eval()`. |
|
Date |
User |
Action |
Args |
2019-01-18 21:26:43 | jez | set | recipients:
+ jez |
2019-01-18 21:26:40 | jez | set | messageid: <1547846800.05.0.589923940496.issue35777@roundup.psfhosted.org> |
2019-01-18 21:26:40 | jez | link | issue35777 messages |
2019-01-18 21:26:39 | jez | create | |
|