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

2016-01-16 Thread Ethan Furman
[resending to lists -- sorry, Greg] On 01/15/2016 12:36 PM, Greg Ewing wrote: 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

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

2016-01-15 Thread Guido van Rossum
Honestly I think it's too late to change. The proposal to change plain Enums to False when their value is zero (or falsey) would be a huge backward incompatibility. I don't think there's a reasonable path forward, and also don't think there's a big reason to regret the current semantics. On Fri, J