![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/5G4xyp68sJY/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" /
![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
![Rodrigo 🐍🚀 on Twitter: "If you write Python 🐍 decorators you need to know about `functools.wraps`! 🚀 If you don't use it, you are doing decorators wrong! 🤷 https://t.co/1wFS1RR9b0" / Twitter Rodrigo 🐍🚀 on Twitter: "If you write Python 🐍 decorators you need to know about `functools.wraps`! 🚀 If you don't use it, you are doing decorators wrong! 🤷 https://t.co/1wFS1RR9b0" / Twitter](https://pbs.twimg.com/media/FuEGCkdWYAAgQn_.jpg:large)