Guide to: Learning Python Decorators

Add your review

$4.99

Category: Tag:

Price: $4.99
(as of Sep 26, 2024 03:25:33 UTC – Details)


Do you want to take your Python to the next level?Python is easy to learn. You can learn the basics in a day and be
productive with it. But there are more advanced constructs that you
will eventually run across if you spend enough time with it. Don’t be confused by these. Learn them, embrace them, and improve your code and others. 
DecoratorsDecorators are pretty common in modern Python. While not strictly necessary, they can reduce code size while enabling control of function input, invocation and output. They also enable separation of responsibility and DRY. Many explanations of decorators are brief and leave the reader somewhat confused. This book is an attempt to remedy that. It is based off of popular tutorials given at PyCon and Python user groups. Without fail, attendees mention that “decorators now make sense”. Not only do they understand decorators, but they can write them as well. The guide covers:FunctionsClosures*args**kwargsDecorating with functionsDecorating with classesAlternate decorating methods

Write Python code like the mastersThese constructs, while not necessary per se, allow you to be more succinct,
re-use code, and think about code in a different way. You will learn:How the constructs workWhen to use themReal life examples from the standard libraryUnderstand other’s code
This book covers many of these intermediate constructs that are available in Python. The book covers both Python 2 and 3. Topics include:
In’s and out’s of functionsClosuresDecoratorsReal world examples of their useBased on popular tutorials and sessions I have taught material similar to these constructs at popular tutorials at conferences such as PyCon, OSCON and Strata (and other
conferences). This book is based on my experience teaching and using
Python for many years. I hope you learn something while in the course
of your reading. Maybe it will help you in your next task, code
review, or job interview. Up Your Advanced Python SkillsIt is assumed that the reader has some knowledge of Python. You will walk away knowing the the in’s and out’s of closures and decorators, when to use them, and how to use them.

ASIN ‏ : ‎ B006ZHJSIM
Publisher ‏ : ‎ (January 18, 2012)
Publication date ‏ : ‎ January 18, 2012
Language ‏ : ‎ English
File size ‏ : ‎ 429 KB
Simultaneous device usage ‏ : ‎ Unlimited
Text-to-Speech ‏ : ‎ Enabled
Screen Reader ‏ : ‎ Supported
Enhanced typesetting ‏ : ‎ Enabled
X-Ray ‏ : ‎ Enabled
Word Wise ‏ : ‎ Not Enabled
Print length ‏ : ‎ 68 pages

Customers say

Customers find the book makes the subject easy to understand. They appreciate the excellent job introducing concepts and building on them step-by-step. Readers describe the writing style as clear, direct, and concise. They say the book is well worth the price and substantial.

AI-generated from the text of customer reviews

$4.99

Buy Now

Add to wishlistAdded to wishlistRemoved from wishlist 0
Guide to: Learning Python Decorators
Guide to: Learning Python Decorators

$4.99

Best Deals for all new
Logo
Shopping cart