Get Help
YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

Decorators and Context Managers

Contribute

Add a new language!

Already have subtitles for this video?
Upload them directly.

Dave Brondsema
Learn how decorators and context managers work, see several popular examples, and get a brief intro to writing your own. Decorators wrap your functions to easily add more functionality. Context managers use the 'with' statement to ma