Message232375
The updated code in the documentation still doesn't set the * and ** parameters. I would have preferred the following code:
for param in sig.parameters.values():
if param.name not in ba.arguments:
if param.kind is inspect.Parameter.VAR_POSITIONAL:
default = ()
elif param.kind is inspect.Parameter.VAR_KEYWORD:
default = {}
else:
default = param.default
ba.arguments[param.name] = default |
|
Date |
User |
Action |
Args |
2014-12-09 13:33:49 | doerwalter | set | recipients:
+ doerwalter, terry.reedy, r.david.murray, docs@python, python-dev, yselivanov |
2014-12-09 13:33:49 | doerwalter | set | messageid: <1418132029.44.0.11153520637.issue22998@psf.upfronthosting.co.za> |
2014-12-09 13:33:49 | doerwalter | link | issue22998 messages |
2014-12-09 13:33:49 | doerwalter | create | |
|