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 RJ722
Recipients RJ722, benjamin.peterson, larry, mdk, ncoghlan, rhettinger, serhiy.storchaka
Date 2020-06-28.11:01:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593342094.3.0.0704083813292.issue17490@roundup.psfhosted.org>
In-reply-to
Content
Some of the test cases from Nick's patch are not passing on master:

    ast.literal_eval('')  # raises SyntaxError; expected: ValueError
    ast.literal_eval('6j--3')  # expected: 3+6j
    ast.literal_eval('(2j+4j)+(1+2)')  # expected: 3+6j
    ast.literal_eval('(2j+4j)-(1+2)')  # expected: -3+6j

I'm assuming that new changes in ast.py do not allow for these. Can anyone confirm that this is indeed the case, and not a bug with literal_eval?
History
Date User Action Args
2020-06-28 11:01:34RJ722setrecipients: + RJ722, rhettinger, ncoghlan, larry, benjamin.peterson, serhiy.storchaka, mdk
2020-06-28 11:01:34RJ722setmessageid: <1593342094.3.0.0704083813292.issue17490@roundup.psfhosted.org>
2020-06-28 11:01:34RJ722linkissue17490 messages
2020-06-28 11:01:34RJ722create