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 terry.reedy
Recipients Scott Turner, mark.dickinson, r.david.murray, terry.reedy
Date 2015-10-09.19:56:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444420613.44.0.25556512682.issue25335@psf.upfronthosting.co.za>
In-reply-to
Content
I am pretty sure the 2.x anomaly is tied up with having short ints plus the anomaly of having one more negative than positive int.

>>> 2147483648
2147483648L
>>> -(2147483648)
-2147483648L
>>> -2147483648
-2147483648

I believe the last result was once the same as the middle result because I remember reading or even writing the explanation that -2147483648 is (was) parsed as -(2147483648) (or something like this).

Raymond' also made more liberal in other ways: literal_eval('(+1)+(-1)') in now 0 instead of ValueError: malformed string. The 3.x doc was not changed to match, though.
History
Date User Action Args
2015-10-09 19:56:53terry.reedysetrecipients: + terry.reedy, mark.dickinson, r.david.murray, Scott Turner
2015-10-09 19:56:53terry.reedysetmessageid: <1444420613.44.0.25556512682.issue25335@psf.upfronthosting.co.za>
2015-10-09 19:56:53terry.reedylinkissue25335 messages
2015-10-09 19:56:53terry.reedycreate