Decorators are pretty common in Python. While not strictly necessary, they can reduce code size while enabling control of function input, invocation and output. 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 them, but they can write them as well.
A really good read! It begins with a nice intro to the python programming styles, functions basics with some interesting examples, an intro to closures, where and how to use them, and finally once you got the needed refresher on the these subjects, it dives into decorators in great detail..
I liked the Alternate Decorator Implementations chapter (Chapter 6), it has some more advanced explanation that will enlighten your overall understanding of decorators.
What I liked the most is that it was short yet very comprehensive and easy to grasp book. I read the entire book in around 2 hours and it has been a well invested time. It is a highly recommended read if you code Python in your daily job or just want to explore the language in more detail.
I'm not sure how I feel about this. On the one hand I learned some things from this Maybe book, it was well written and got the point across. On the other it felt like I bought something which could have been a long blog post because it took an hour, maybe less to read. idk, if you have £3.80 to fork over, buy it to support Matt or something.