R. David Murray added the comment:

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.

----------
nosy: +yselivanov
versions: +Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22998>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to