This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients doerwalter, r.david.murray, yselivanov
Date 2014-12-04.21:28:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is indeed a bit tricky.  Your use case is pretty specialized (it doesn't involve any actual python functions), so I don't think by itself it argues for the inclusion of a _with_defaults method.  The example fill-in in the docs fails because args and kwargs don't check for _empty as a possible value for the VAR_POSITIONAL (resp VAR_KEYWORD).

So I think either we add that check to args and kwargs, or we add a _with_defaults method because filling in the defaults would no longer be a simple loop (and thus easy to get wrong).

Let's see what Yury thinks.
Date User Action Args
2014-12-04 21:28:34r.david.murraysetrecipients: + r.david.murray, doerwalter, yselivanov
2014-12-04 21:28:34r.david.murraysetmessageid: <>
2014-12-04 21:28:34r.david.murraylinkissue22998 messages
2014-12-04 21:28:34r.david.murraycreate