[Python-Dev] Common subset of python 2 and python 3 (original) (raw)

Chris Angelico rosuav at gmail.com
Wed Jan 15 14:21:56 CET 2014


On Wed, Jan 15, 2014 at 11:22 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:

I don't think that it is possible to write an interpreter that is fully compatible for all it accepts. Would you think that the program

print(repr(2**80).endswith("L")) is in the subset that should be supported by both Python 2 and Python 3?

Easiest fix for that would be to have long.repr omit the L tag. Then it'll do the same as it would in Py3.

ChrisA



More information about the Python-Dev mailing list