Import It All
Books > Computers & Technology > Programming
Guide to: Learning Python Decorators

Guide to: Learning Python Decorators

Product ID: 2427028 Condition: New

No Stock / Cannot Import
Buy in USA

Product Description

Guide to: Learning Python Decorators

<div><b>Do you want to take your Python to the next level?</b></div><div><b></b></div>Python is easy to learn. You can learn the basics in a day and be<br />productive with it. But there are <b><i>more advanced constructs</i></b> that you<br />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.<div> <br /><div></div><div><b>Decorators</b></div><div>Decorators 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.<i> Without fail, attendees mention that "decorators now make sense"</i>. <b>Not only do they understand decorators, but they can write them as well.</b></div><div> </div><div></div><div><div></div><div>The guide covers:</div><div></div><div><ul><li>Functions</li><li>Closures</li><li>*args</li><li>**kwargs</li><li>Decorating with functions</li><li>Decorating with classes</li><li>Alternate decorating methods</li></ul></div><div><div><br /><div></div><br /><div><b>Write Python code like the masters</b></div><div></div><div>These constructs, while not necessary per se, allow you to be more succinct,<br />re-use code, and think about code in a different way. You will learn:</div><div><ul><li>How the constructs work</li><li>When to use them</li><li>Real life examples from the standard library</li></ul><b>Understand other's code</b><br />This book covers many of these intermediate constructs that are available in Python. <i><b>The book covers both Python 2 and 3.</b></i> Topics include:<br /></div><div><ul><li>In's and out's of functions</li><li>Closures</li><li>Decorators</li><li>Real world examples of their use</li></ul><b>Based on popular tutorials and sessions</b> </div><div>I have taught material similar to these constructs at popular tutorials at conferences such as PyCon, OSCON and Strata (and other<br />conferences). This book is based on my experience teaching and using<br />Python for many years. I hope you learn something while in the course<br />of your reading. Maybe it will help you in your next task, code<br />review, or job interview.</div></div><div> </div><div></div><div></div><div></div><div></div><div></div><div></div><div><b>Up Your Advanced Python Skills</b></div>It 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.<br /> </div></div><div></div><div></div><div></div><div></div></div>

Technical Specifications

Country
USA
Binding
Kindle Edition
ReleaseDate
2012-01-18T00:00:00.000Z
Format
Kindle eBook

You might also like

Back to top