Timeline for Python best practice when logging optional arguments
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 10, 2022 at 14:16 | comment | added | J.G. |
Better still, replace return f with return functools.wraps(func)(f) (or decorate func above its signature line with @functools.wraps . Either way, you need to import functools .
|
|
Mar 10, 2022 at 12:06 | history | answered | jfaccioni | CC BY-SA 4.0 |