About Preserving Decorated Function Names and Docstrings
Use the functools.wraps
decorator when creating function decorators in
Python to preserve decorated function names, docstrings, and argument lists:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You