> Ah, but that would be definite incompatible change in semantics. I > would be very suprised if this printed "IS": > > a = [] > b = [] > if (a, b) is (a, b): print "IS" > else: print "ISN'T" Indeed, it would be a change. And I can go along with an argument that an incompatible change of that magnitude should be rejected for that reason alone. But why would the change cause a problem? Consider: a = [] b = [] x = (a, b) y = (a, b) Can you think of a program that can make productive use of the value of "x is y"? It seems to me that x and y are mutually substitutable.
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