Message377571
literal_eval() is not purposed to evaluate arbitrary arithmetic expressions. It is only purposed to handle strings produced by repr() of some simple builtin objects. repr(6j+3) is '(3+6j)', not '(6j+3)' and not '(6j--3)', so it accepts the former form and not the latters.
If Nick no longer works on this I propose to close this issue. literal_eval() supports now more types of expressions, but it is more strict in other cases. I have doubts that any test changes are applicable to the current code. |
|
Date |
User |
Action |
Args |
2020-09-27 14:24:43 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ncoghlan, larry, benjamin.peterson, mdk, RJ722, BTaskaya, iritkatriel |
2020-09-27 14:24:43 | serhiy.storchaka | set | messageid: <1601216683.42.0.500528133313.issue17490@roundup.psfhosted.org> |
2020-09-27 14:24:43 | serhiy.storchaka | link | issue17490 messages |
2020-09-27 14:24:43 | serhiy.storchaka | create | |
|