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 aronacher
Recipients aronacher, benjamin.peterson, georg.brandl, mark.dickinson
Date 2009-01-13.11:34:52
SpamBayes Score 0.06716054
Marked as misclassified No
Message-id <1231846493.91.0.109539323588.issue4907@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-13 11:34:54aronachersetrecipients: + aronacher, georg.brandl, mark.dickinson, benjamin.peterson
2009-01-13 11:34:53aronachersetmessageid: <1231846493.91.0.109539323588.issue4907@psf.upfronthosting.co.za>
2009-01-13 11:34:53aronacherlinkissue4907 messages
2009-01-13 11:34:52aronachercreate