[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
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