Author domdfcoding
Recipients Thor Whalen, Thor Whalen2, domdfcoding, ncoghlan, terry.reedy
Date 2020-08-05.12:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
To me your examples seem like a misuse of functools.wraps. IIUC its purpose is to make a wrapper that accepts solely *args and **kwargs appear to be the wrapped function; it doesn't seem to be intended to be used when the wrapper takes arguments of different types or that have different default values. 

I can't think of a situation where you'd use wraps with a decorator that doesn't take just *args and **kwargs. That's not to say there aren't occasions where you'd want to to that, just that wraps isn't the right tool.
Date User Action Args
2020-08-05 12:51:16domdfcodingsetrecipients: + domdfcoding, terry.reedy, ncoghlan, Thor Whalen, Thor Whalen2
2020-08-05 12:51:16domdfcodingsetmessageid: <>
2020-08-05 12:51:16domdfcodinglinkissue41232 messages
2020-08-05 12:51:15domdfcodingcreate