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 r.david.murray
Recipients Scott Turner, r.david.murray
Date 2015-10-07.16:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444234127.87.0.905973011826.issue25335@psf.upfronthosting.co.za>
In-reply-to
Content
This works in python3.  I'm not sure why the two pythons are different, there's no obvious issue about this being changed in python3, so perhaps it was something that "just happened" while changing other things.  

literal_eval is *not* a general expression evaluator, so I'm actually surprised this works in python3...apparently support for + and - is required for evaling complex numbers, but there must be something different about the parse trees generated in python2 vs python3, since python2 literal_eval handles complex numbers fine.

I'm not sure this is a bug, but *if* we decide it is something we'd should make work the same in python2 and python3, someone will probably have to invest the time in figuring out what the difference between the two is.
History
Date User Action Args
2015-10-07 16:08:47r.david.murraysetrecipients: + r.david.murray, Scott Turner
2015-10-07 16:08:47r.david.murraysetmessageid: <1444234127.87.0.905973011826.issue25335@psf.upfronthosting.co.za>
2015-10-07 16:08:47r.david.murraylinkissue25335 messages
2015-10-07 16:08:47r.david.murraycreate