osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Enum, Flag, __contains__, and False vs TypeError


On 04/04/2018 02:12 PM, Guido van Rossum wrote:

> I don't think of "in" as an equality test -- it's special just like <, <=,
 > >, >= are special, and those can certainly raise TypeError.

Good to know, thank you!

--
~Ethan~