[New-bugs-announce] [issue38967] Improve error message in enum.py for python 3.5
Rubén Jesús García Hernández
report at bugs.python.org
Wed Dec 4 04:06:38 EST 2019
New submission from Rubén Jesús García Hernández <rubengarciahernandez at 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 at python
components: Documentation
files: enum.diff.txt
messages: 357782
nosy: Rubén Jesús García Hernández, docs at 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 at bugs.python.org>
<https://bugs.python.org/issue38967>
_______________________________________
More information about the New-bugs-announce
mailing list