Walter Dörwald added the comment:
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
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue22998 _______________________________________