Who Are You, Really?
In this lesson, you’ll learn what introspection is and how it can be used to get more information about a Python function. You’ll also see that introspecting decorated functions can be a little confusing because of the way the functions identify themselves after decoration. To solve this problem, you will learn how to use
@functools.wraps, a decorator from the
functools module which updates special attributes used for introspection.
Comments & Discussion
Become a Member to join the conversation.