[docs] [issue29666] Issue in enum documentation

STINNER Victor report at bugs.python.org
Mon Feb 27 08:48:31 EST 2017


New submission from STINNER Victor:

https://docs.python.org/dev/library/enum.html

"This module defines four enumeration classes that can be used to define unique sets of names and values: Enum, IntEnum, and IntFlags"

Enum, IntEnum, IntFlag: I count 3 classes, no 4?

Moreover, the correct class name is IntFlag, not IntFlags. Or did I miss something?

haypo at selma$ ./python
Python 3.7.0a0 (default, Feb 25 2017, 04:30:32) 
>>> import enum
>>> enum.IntFlags
...
AttributeError: module 'enum' has no attribute 'IntFlags'

----------
assignee: docs at python
components: Documentation
keywords: easy
messages: 288642
nosy: docs at python, haypo
priority: normal
severity: normal
status: open
title: Issue in enum documentation
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29666>
_______________________________________


More information about the docs mailing list