Python 101:
What are decorators
About me
I work in python at silver creek software
edmontonpy slack: dgmouris
github: dgmouris
twitter: dgmouris
I know too many useless sports stats
I like cats, and have three cats that are cute
What Decorators Look like.
What You Need to know to understand decorators
Functions
Nesting function(s)
Functions return other functions
First Class Objects
So what is a decorator?
Decorators functions that have a "wrapper" and the "wrapper" with your function gets called.
Putting it all together to create and use decorator.
Creating the decorator
example: decorators.py
What the decorator does conceptually
example: example1.py
Let's use our decorator!
example: example2.py
When is this handy to use?
Thanks!
Please give me feedback on how I can improve the talks. (Afterwards)
Made with Slides.com