|
|
|
|
|
by BoppreH
4448 days ago
|
|
It's not possible to determine the language. The extensions are the same and much of the syntax hasn't changed, and many of the backwards-incompatible differences are subtle. Python2: print(1/2 * 1000) # 0
print({b'a': 'bytes', u'a': 'text'}[b'a']) # text
print(b'A'[0]) # A
Python3: print(1/2 * 1000) # 500
print({b'a': 'bytes', u'a': 'text'}[b'a']) # bytes
print(b'A'[0]) # 65
And the merits of doing a backwards-incompatible version have been discussed to death elsewhere. |
|