Re: [Python-Dev] Boolean value of an Enum member

2016-01-15 Thread Barry Warsaw
On Jan 15, 2016, at 10:22 AM, Ethan Furman wrote: >So the question now is: for a standard Enum (meaning no other type besides >Enum is involved) should __bool__ look to the value of the Enum member to >determine True/False, or should we always be True by default and make the >Enum creator add thei

[Python-Dev] Boolean value of an Enum member

2016-01-15 Thread Ethan Furman
When Enum was being designed one of the questions considered was where to start autonumbering: zero or one. As I remember the discussion we chose not to start with zero because we didn't want an enum member to be False by default, and having a member with value 0 be True was discordant. So th