Author doerwalter
Recipients docs@python, doerwalter, python-dev, r.david.murray, terry.reedy, yselivanov
Date 2014-12-09.13:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418132029.44.0.11153520637.issue22998@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-12-09 13:33:49doerwaltersetrecipients: + doerwalter, terry.reedy, r.david.murray, docs@python, python-dev, yselivanov
2014-12-09 13:33:49doerwaltersetmessageid: <1418132029.44.0.11153520637.issue22998@psf.upfronthosting.co.za>
2014-12-09 13:33:49doerwalterlinkissue22998 messages
2014-12-09 13:33:49doerwaltercreate