summaryrefslogtreecommitdiffstats
path: root/Doc/library/enum.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r--Doc/library/enum.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index c690c83..07acf9d 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -696,7 +696,8 @@ Data Types
.. attribute:: STRICT
- Out-of-range values cause a :exc:`ValueError` to be raised::
+ Out-of-range values cause a :exc:`ValueError` to be raised. This is the
+ default for :class:`Flag`::
>>> from enum import Flag, STRICT, auto
>>> class StrictFlag(Flag, boundary=STRICT):
@@ -714,7 +715,7 @@ Data Types
.. attribute:: CONFORM
Out-of-range values have invalid values removed, leaving a valid *Flag*
- value. This is the default for :class:`Flag`::
+ value::
>>> from enum import Flag, CONFORM, auto
>>> class ConformFlag(Flag, boundary=CONFORM):