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 serhiy.storchaka
Recipients BTaskaya, RJ722, benjamin.peterson, iritkatriel, larry, mdk, ncoghlan, rhettinger, serhiy.storchaka
Date 2020-09-27.14:24:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601216683.42.0.500528133313.issue17490@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-09-27 14:24:43serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan, larry, benjamin.peterson, mdk, RJ722, BTaskaya, iritkatriel
2020-09-27 14:24:43serhiy.storchakasetmessageid: <1601216683.42.0.500528133313.issue17490@roundup.psfhosted.org>
2020-09-27 14:24:43serhiy.storchakalinkissue17490 messages
2020-09-27 14:24:43serhiy.storchakacreate