![Daily Python Tip 🐍🐧 on Twitter: "Debugging a decorated function: If you decorate a function, its __name__, __doc__ and __module__ might be different than what you expect. Try @functools.wraps to get the Daily Python Tip 🐍🐧 on Twitter: "Debugging a decorated function: If you decorate a function, its __name__, __doc__ and __module__ might be different than what you expect. Try @functools.wraps to get the](https://pbs.twimg.com/media/DtsTOU5XQAEMrvU.jpg)
Daily Python Tip 🐍🐧 on Twitter: "Debugging a decorated function: If you decorate a function, its __name__, __doc__ and __module__ might be different than what you expect. Try @functools.wraps to get the
![Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube](https://i.ytimg.com/vi/9Tzv9rQUD_o/maxresdefault.jpg)
Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube
![Bob Belderbos | @bbelderbos@fosstodon.org on Twitter: "When writing #Python decorators, it's best practice to use functools.wraps to not lose the docstring and other metadata of the function you are decorating: https://t.co/8IAp1ZYuJx" / Bob Belderbos | @bbelderbos@fosstodon.org on Twitter: "When writing #Python decorators, it's best practice to use functools.wraps to not lose the docstring and other metadata of the function you are decorating: https://t.co/8IAp1ZYuJx" /](https://pbs.twimg.com/media/FGBZufVXMAMp927.jpg:large)
Bob Belderbos | @bbelderbos@fosstodon.org on Twitter: "When writing #Python decorators, it's best practice to use functools.wraps to not lose the docstring and other metadata of the function you are decorating: https://t.co/8IAp1ZYuJx" /
Rodrigo 🐍📝 on Twitter: "Python 🐍 decorators are very powerful! But they can override some important meta-information about your functions... 😱 For example, when you decorate your functions, they lose their docstring...
![Partial functions in python functools.partial. With applications and examples. | by Siddharth Kshirsagar | Medium Partial functions in python functools.partial. With applications and examples. | by Siddharth Kshirsagar | Medium](https://miro.medium.com/max/1400/1*NN-t7Rm_g_yipHirmZ-_hg.png)