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

wraps behaves differently on 2.7 and 3.5 #165

Closed
benjaminp opened this issue Dec 21, 2016 · 0 comments
Closed

wraps behaves differently on 2.7 and 3.5 #165

benjaminp opened this issue Dec 21, 2016 · 0 comments

Comments

@benjaminp
Copy link
Owner

Originally reported by: Hexchain Tong (Bitbucket: hexchain, GitHub: hexchain)


In Python 2.7 the wraps cannot be used on @classmethods because it does not have the __module__ attribute.

In Python 3.5 it has a try/except around setattr so nonexistent attributes are ignored silently.

Should six.wraps behave consistently across these versions? Thanks.


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

No branches or pull requests

1 participant