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

Ryan McCampbell report at bugs.python.org
Sat Jun 14 15:49:17 CEST 2014


Ryan McCampbell added the comment:

If this is decided against, a partial solution would be to set the "default" attribute of VAR_POSITIONAL and VAR_KEYWORD args to an empty tuple/dict, respectively. Then you could get a parameter's value no matter what with boundargs.get(param.name, param.default).

----------

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


More information about the Python-bugs-list mailing list