summaryrefslogtreecommitdiffstats
path: root/Doc/library/enum.rst
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2016-01-16 20:39:53 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2016-01-16 20:39:53 (GMT)
commit2ae4ea54a23468695b1bab4aca1befc3681e8bfb (patch)
tree90f604f04c9f434a18d904826f432a2493c7e314 /Doc/library/enum.rst
parent51578c0c980ec449d6cc502d1282e79caa8463cf (diff)
downloadcpython-2ae4ea54a23468695b1bab4aca1befc3681e8bfb.zip
cpython-2ae4ea54a23468695b1bab4aca1befc3681e8bfb.tar.gz
cpython-2ae4ea54a23468695b1bab4aca1befc3681e8bfb.tar.bz2
use public 'value'
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r--Doc/library/enum.rst2
1 files changed, 1 insertions, 1 deletions
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.