[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

Yury Selivanov report at bugs.python.org
Wed Jun 25 19:03:34 CEST 2014


Yury Selivanov added the comment:

> But I can't think of any use case when it would be undesirable to include the extra parameters

One use case is that you are actually loosing information what arguments Signature.bind() was called with, when defaults are included. In some cases this information is important.

> hence the possibility of a separate method

Since it's relatively easy to add mix defaults in, I'd prefer to be conservative here, and wait for a stronger community interest before adding a new method to API.

But thanks for the bug report. If you find any other use cases for a separate method, please feel free to update this issue.

----------

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


More information about the Python-bugs-list mailing list