Nice list! The containment test chaining example reminded me to file https://bugs.python.org/issue32055, since while the current behaviour does follow from the language definition, it's far from clear that containment tests should really participate in comparison chaining that same way other operators do.
Nice list! The containment test chaining example reminded me to file https://bugs.python.org/issue32055, since while the current behaviour does follow from the language definition, it's far from clear that containment tests should really participate in comparison chaining that same way other operators do.