re: Python 'is' vs '==' VIEW POST

re: Very nice, but a word of warning, identity (what is checks) is generally a language implementation detail, not something that should be relied upon...

Interesting. Thanks for the heads up.

Except in some extremely rare, hack-y scenarios, you should only see is in the context of is None.

You know, I wanted to mention something similar to this but didn't because we wouldn't usually do if a is None... a better way would be if not a - so I didn't know exactly how to frame it.

code of conduct - report abuse