What is the rationale behind this? '==' works all the time, and 'is' only works sometimes. Using 'is' wherever possible requires the user to know some rather arbitrary language details (which objects are singletons and which are not), wheras '==' will always give the correct answer regardless.
OTOH it’s recommended to use `is` rather than `==` when comparing to “singletons like `None`”.
https://www.python.org/dev/peps/pep-0008/#programming-recomm...