[issue33790] Decorated (inner/wrapped) function kwarg defaults dont pass through decorator.

2018-06-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think you have misunderstood where and when default arguments are assigned. When you call func() with no arguments, kwargs is empty, and it is correct that the output will be -> Decorator: In the following line, you call the original function, f(), agai

[issue33790] Decorated (inner/wrapped) function kwarg defaults dont pass through decorator.

2018-06-06 Thread Salomon
New submission from Salomon : I am seeing an issue when attempting to use default kwargs in decorated functions. I would post reproduction steps, but instead I have written a snippet which should showcase the issue. Snippet: ```python def decorator(): def inner(f): def wrapper(*a