New submission from Rubén Jesús García Hernández 
<rubengarciahernan...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to