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

Add functools.wraps to decorator materials #110

Open
PythonCHB opened this issue Feb 11, 2018 · 2 comments
Open

Add functools.wraps to decorator materials #110

PythonCHB opened this issue Feb 11, 2018 · 2 comments

Comments

@PythonCHB
Copy link
Contributor

functools.wraps

is a decorator that copies a bunch of the metadata about the function being wrapped -- makes decorated functions more friendly.

-CHB

@PythonCHB
Copy link
Contributor Author

Here's a blog post that goes into a bit more detail:

http://blog.dscpl.com.au/2014/01/how-you-implemented-your-python.html

@PythonCHB
Copy link
Contributor Author

And here are a bunch more of his...

https://github.com/GrahamDumpleton/wrapt/tree/master/blog

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