[Python-Dev] Enum, Flag, contains, and False vs TypeError (original) (raw)

Ethan Furman ethan at stoneleaf.us
Wed Apr 4 17:36:10 EDT 2018


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



More information about the Python-Dev mailing list