A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131619.html below:

[Python-Dev] Common subset of python 2 and python 3

[Python-Dev] Common subset of python 2 and python 3 [Python-Dev] Common subset of python 2 and python 3Chris 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4