From 2ae4ea54a23468695b1bab4aca1befc3681e8bfb Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Sat, 16 Jan 2016 12:39:53 -0800 Subject: use public 'value' --- Doc/library/enum.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 377ac3e..1fa6e73 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to your class:: def __bool__(self): - return bool(self._value_) + return bool(self.value) The :attr:`__members__` attribute is only available on the class. -- cgit v0.12