Flashes Home Search Notifications Sign in Post
Monty @ The Python Coding Place @thepythoncodingplace.com · Mar 10

Luckily, Python gives you the option to carry the function's name and docstrings onto the decorated version. The `@​functools.wraps` decorator applied to the `inner()` function in the decorator does the trick!

0 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 10

On Day 4, we'll look at more complex decorators, but first, let's summarise what we know from Days 1 to 3

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store