Message79604
I'm not sure that this is desirable behaviour. There's no such thing as a
complex literal---only imaginary literals. Why allow evaluation of 2+1j
but not of 2 + 1, or 2*1j.
In any case, I'm not sure that the patch behaves as intended. For
example,
>>> ast.literal_eval('2 + (3 + 4j)')
(5+4j) |
|
Date |
User |
Action |
Args |
2009-01-11 17:33:55 | mark.dickinson | set | recipients:
+ mark.dickinson, benjamin.peterson, aronacher |
2009-01-11 17:33:55 | mark.dickinson | set | messageid: <1231695235.49.0.880998736303.issue4907@psf.upfronthosting.co.za> |
2009-01-11 17:33:54 | mark.dickinson | link | issue4907 messages |
2009-01-11 17:33:54 | mark.dickinson | create | |
|