[issue4907] ast.literal_eval does not properly handled complex numbers

Mark Dickinson report at bugs.python.org
Tue Jan 13 12:40:46 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

So why accept (4+2j) but not (2j+4)?

(BTW, I'm fairly sure that the complex constructor does
accept parentheses;  you're right about the whitespace, though.)

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4907>
_______________________________________


More information about the Python-bugs-list mailing list