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 <1417728514.66.0.91904080569.issue22998@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1417728514.66.0.91904080569.issue22998@psf.upfronthosting.co.za>
2014-12-04 21:28:34r.david.murraylinkissue22998 messages
2014-12-04 21:28:34r.david.murraycreate