[docs] [issue23292] Enum doc suggestion
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
when they're more used to
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
nosy: docs at python, mark
title: Enum doc suggestion
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