Python sports a powerful, mysterious feature called the decorator. Decorators add rich behavior to groups of functions and classes without modifying them at all, untangle distinct, frustratingly intertwined concerns in your code in ways simply not possible with functions and classes, and build powerful, extensible software frameworks other developers love to use. Popular frameworks like Flask, Django, pytest, SQLAlchemy, Twisted, and even Python’s standard library all rely on decorators to provide key functionality.
But while decorators are trivially easy to use, they are far from easy to write. Creating your own decorators requires a number of advanced Python skills: a sophisticated understanding of Python’s memory model, familiarity with uncommon abstractions of functions, dexterity with generic programming, and more. Most Python developers miss out on the benefits of decorators because they never learn to write them.
Aaron Maxwell teaches you how to write compelling and useful decorators other developers will flock to use. Come ready to code. You’ll leave with fluent mastery in writing and leveraging Python decorators.
Aaron Maxwell trains working engineers in advanced Python development and DevOps.
©2017, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org