[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
Mon Sep 14 20:09:03 EDT 2020


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

Noone said it is a requirement, I just said it would be nice to have it factored out as a decorator or something instead of having to write __repr__ over and over again.

----------

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


More information about the Python-bugs-list mailing list