[issue29363] allow Python code to determine class help text

Ethan Furman report at bugs.python.org
Tue Jan 24 15:27:11 EST 2017


Ethan Furman added the comment:

Probably not because an enum class' __call__ comes from the type EnumMeta -- so having two different __call__ methods would mean two different metaclasses, and I'm pretty sure I don't want to go there.  ;)

There is a __doc__ defined for the __call__ method, though -- is there a reason inspect isn't using that?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29363>
_______________________________________


More information about the Python-bugs-list mailing list