[issue22547] Implement an informative `BoundArguments.__repr__`

Yury Selivanov report at bugs.python.org
Fri May 15 18:42:36 CEST 2015


Yury Selivanov added the comment:

Actually, I like the current repr (minus the object ID, I'll update the code).

The thing about BoundArguments is that '.arguments' is the main property. You use it to add more stuff to *args & **kwargs, or to add/remove positional/keyword arguments.  Seeing a flattened call signature in the repr won't help you with debugging.

Perhaps, we can implement __str__ using your approach.

----------

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


More information about the Python-bugs-list mailing list