[issue20380] __defaults__ changed by *args
Larry Hastings
report at bugs.python.org
Fri Jan 24 15:34:53 CET 2014
Larry Hastings added the comment:
That's because in f, y is after *args, so it is a keyword-only parameter. Its default value is in __kwdefaults__. If you move y to before *args, its default will be in __defaults__.
This is working as designed.
----------
nosy: +larry
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20380>
_______________________________________
More information about the Python-bugs-list
mailing list