revert change 87a9dff5106c: pure Enum members again evaluate to True;

update Finer Points section of docs to cover boolean evaluation;
add more tests for pure and mixed boolean evaluation
This commit is contained in:
Ethan Furman 2016-01-15 15:01:33 -08:00
parent 43cfd8240c
commit 60255b67b9
3 changed files with 26 additions and 5 deletions

View file

@ -482,9 +482,6 @@ class Enum(metaclass=EnumMeta):
def __str__(self):
return "%s.%s" % (self.__class__.__name__, self._name_)
def __bool__(self):
return bool(self._value_)
def __dir__(self):
added_behavior = [
m