Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__qualname__ not updated #7

Closed
RazerM opened this issue Apr 23, 2015 · 1 comment
Closed

__qualname__ not updated #7

RazerM opened this issue Apr 23, 2015 · 1 comment

Comments

@RazerM
Copy link

RazerM commented Apr 23, 2015

functools.update_wrapper sets wrapper.__qualname__ to wrapped.__qualname__, is there a reason that decorator.decorator doesn't do the same?

I tried searching for a reason this is the case, but came up blank.

@micheles
Copy link
Owner

The reason is quite simple: when the decorator module was first written, the __qualname__ attribute did not exist. It is a "recent" invention of Python. I will add that attribute in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants