Andrew> Don't expose the implementation to users needlessly. Andrew> This kind of implementation-defined behavior makes me nervous, Andrew> because it makes it easy to write programs with bugs that no Andrew> amount of testing can ever reveal. I don't know what the original impetus for this long discussion of "is" vs "==" was, but my guess is that it was misguided (premature) optimization. The somewhat anomalous behavior of "is" in CPython is an implementation detail. If Jython was used as the basis for comparison I suspect the implemntation might match the definition a bit more precisely. I'm not sure what the use case for the recursive "is" is, but it would be no cheaper than "==" in that case. I'm disinclined to change things. Skip
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