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 mark.dickinson
Recipients aronacher, benjamin.peterson, mark.dickinson
Date 2009-01-11.17:33:54
SpamBayes Score 0.015267146
Marked as misclassified No
Message-id <1231695235.49.0.880998736303.issue4907@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-01-11 17:33:55mark.dickinsonsetrecipients: + mark.dickinson, benjamin.peterson, aronacher
2009-01-11 17:33:55mark.dickinsonsetmessageid: <1231695235.49.0.880998736303.issue4907@psf.upfronthosting.co.za>
2009-01-11 17:33:54mark.dickinsonlinkissue4907 messages
2009-01-11 17:33:54mark.dickinsoncreate