Skip to content

Add optional exclude_args argument to astropy.utils.decorators.wraps - #4017

Merged
embray merged 1 commit into
astropy:masterfrom
embray:utils/wraps-exclude-args
Jul 30, 2015
Merged

embray merged 1 commit into
astropy:masterfrom
embray:utils/wraps-exclude-args

Conversation

@embray

@embray embray commented Jul 29, 2015

Copy link
Copy Markdown
Member

See the supplied changelog message for more details.

Originally I wanted our wraps decorator to be exactly identical to the standard lib functools.wraps other than its ability to preserve the function signature. However, I've wanted the ability on more than one occasion to slightly tweak the arguments of the wrapper function, and this provides a way to do it (and is still API-compatible with functools.wraps).

This PR depends on #4016.

@embray
embray force-pushed the utils/wraps-exclude-args branch from 706d856 to 84690ea Compare July 30, 2015 14:38
embray added a commit that referenced this pull request Jul 30, 2015
Add optional exclude_args argument to astropy.utils.decorators.wraps
@embray
embray merged commit 28253bc into astropy:master Jul 30, 2015
@embray
embray deleted the utils/wraps-exclude-args branch July 30, 2015 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant