Rahul Jha <rahul7...@gmail.com> added the comment:
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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue17490> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com