
New submission from Rubén Jesús García Hernández <rubengarciahernandez@gmail.com>: I changed the '_names_ are reserved for future Enum use' line to be more user-friendly thus: 'Names surrounded by underscore (such as "%s") are reserved for future Enum use' % key The current message can be interpreted as the literal string _names_; and showing the offending key can help users debug. ---------- assignee: docs@python components: Documentation files: enum.diff.txt messages: 357782 nosy: Rubén Jesús García Hernández, docs@python priority: normal severity: normal status: open title: Improve error message in enum.py for python 3.5 versions: Python 3.5 Added file: https://bugs.python.org/file48754/enum.diff.txt _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38967> _______________________________________