[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

Vedran Čačić report at bugs.python.org
Fri Apr 10 23:49:21 EDT 2020


Vedran Čačić <vedgar at gmail.com> added the comment:

> _in some cases when enum instances are exposed as module globals_

Yes. And repr should be inverse of eval, but it's probably too late for that. :-/

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40066>
_______________________________________


More information about the Python-bugs-list mailing list