[docs] [issue23292] Enum doc suggestion

Mark Summerfield report at bugs.python.org
Wed Jan 21 21:00:29 CET 2015

New submission from Mark Summerfield:

I think it would be worth documenting
globals().update(MyEnumeration.__members__) in the "Interesting
Examples" section of the enum docs.

I suspect that most people will find that importing enums is annoying
because they'll get

import A

when they're more used to

import A

Of course the latter is easily achieved using the globals().update()
trick (as used in signals.py in 3.5).

Georg suggested I add this to the tracker.

assignee: docs at python
components: Documentation
files: py-enum.tar.gz
messages: 234442
nosy: docs at python, mark
priority: normal
severity: normal
status: open
title: Enum doc suggestion
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file37809/py-enum.tar.gz

Python tracker <report at bugs.python.org>

More information about the docs mailing list