This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Issue in enum documentation
Type: Stage: resolved
Components: Documentation Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Jim Fasarakis-Hilliard, docs@python, ethan.furman, exqu17, vstinner
Priority: normal Keywords: easy

Created on 2017-02-27 13:48 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 358 merged exqu17, 2017-02-28 18:43
PR 367 merged vstinner, 2017-03-02 11:47
Messages (5)
msg288642 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-02-27 13:48
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@selma$ ./python
Python 3.7.0a0 (default, Feb 25 2017, 04:30:32) 
>>> import enum
>>> enum.IntFlags
...
AttributeError: module 'enum' has no attribute 'IntFlags'
msg288643 - (view) Author: Jim Fasarakis-Hilliard (Jim Fasarakis-Hilliard) * Date: 2017-02-27 14:08
Yup, `IntFlags` is a typo, that's why the reference to it doesn't show too. 

Also, the fourth enum must be `Flag` which must of been omitted when it was added in `3.6`.
msg288647 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2017-02-27 16:17
`Flag` and `IntFlag` are indeed the correct (and missing) names.
msg288721 - (view) Author: Kartik (exqu17) * Date: 2017-02-28 18:43
Hi I've edited the documentation to correct this and submitted a PR.
msg288797 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-03-02 11:48
Doc has been fixed in Python 3.6 and 3.7. Thanks!
History
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73852
2017-03-02 11:48:04vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg288797

stage: resolved
2017-03-02 11:47:37vstinnersetpull_requests: + pull_request325
2017-03-02 10:17:18vstinnersetversions: + Python 3.6
2017-02-28 18:43:31exqu17setnosy: + exqu17

messages: + msg288721
pull_requests: + pull_request305
2017-02-27 16:17:12ethan.furmansetnosy: + ethan.furman
messages: + msg288647
2017-02-27 14:08:53Jim Fasarakis-Hilliardsetnosy: + Jim Fasarakis-Hilliard
messages: + msg288643
2017-02-27 13:48:31vstinnercreate