From: Ethan Furman Date: Sat, 16 Jan 2016 20:39:53 +0000 (-0800) Subject: use public 'value' X-Git-Tag: v3.6.0a1~760^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ae4ea54a23468695b1bab4aca1befc3681e8bfb;p=thirdparty%2FPython%2Fcpython.git use public 'value' --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 377ac3e24509..1fa6e73d952b 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.