Message79733
literal_eval has eval() semantics and not complex() constructor
semantics. It accepts what eval() accepts just without arithmetic and
unsafe features.
For exmaple "(2 + 4j)" is perfectly fine even though the complex call
only supports "2+4j" (no parentheses and whitespace).
I commit the fix with the ValueError except Georg suggested. |
|
| Date |
User |
Action |
Args |
| 2009-01-13 11:34:54 | aronacher | set | recipients:
+ aronacher, georg.brandl, mark.dickinson, benjamin.peterson |
| 2009-01-13 11:34:53 | aronacher | set | messageid: <[email protected]> |
| 2009-01-13 11:34:53 | aronacher | link | issue4907 messages |
| 2009-01-13 11:34:52 | aronacher | create | |
|