[issue33197] Confusing error message when constructing invalid inspect.Parameters

Nitish report at bugs.python.org
Mon Apr 2 01:20:03 EDT 2018


Nitish <nitishch at protonmail.com> added the comment:

Also, _ParameterKind class has a __str__ method. So, I guess it's better to use "{!s}" in the format string instead of using kind.name.

----------

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


More information about the Python-bugs-list mailing list