Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wraps behaves differently on 2.7 and 3.5 #165

@benjaminp

Description

@benjaminp

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions