|Print List Price:||$29.99|
Save $25.00 (83%)
Python Tricks: A Buffet of Awesome Python Features Kindle Edition
|New from||Used from|
An Amazon Book with Buzz: "House of Earth and Blood" by Sarah J. Maas
"Truly epic" - Laurell K. Hamilton Learn more
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Customers who bought this item also bought
Would you like to tell us about a lower price?
There was a problem filtering reviews right now. Please try again later.
I consider my Python level to be intermediate. I have completed reading 100 pages(1/3 of the book). Although the content is decent, this feels like it is targeted more towards beginner(not an absolute beginner) than intermediate level. I am hardly learning anything new that is already not in Fluent Python (which is a big ass book in comparison but provides better understanding of the Pythonic tricks) or in Raymond Hettinger or David Beazley’s videos on YouTube.
I will update the review once I finish reading the entire book.
Update: I finished reading the book and I still stand by what I said earlier. If you have time and patience, go with Fluent python. Other than the new style string formatting, rest of the content is mostly covered in that.
That does not mean this is not a good book. I really loved some of the chapters like generators, iterators. The examples were more simple and easy to understand. Overall, I found this book to be more of a tutorial than a reference material. Mainly because I use the excellent pymotw website for the Collections part of the book.
As he notes in the Introduction, this book grew out of the Python Tricks emails, and it really shows. Dan has a knack for constructing code snippets that illustrate Python concepts in very few lines, and also for writing extremely clear descriptions of why they behave as they do. Further, even though Dan has years of Python experience, it seems clear to me he hasn't lost the sense of the ways in which Python can be confusing to new learners. I've only sampled here and there from his Buffet at this point, but have already gained two new concrete pieces of knowledge: bytearrays are mutable whereas bytes are not; and all it takes to create an abstract base class is to use metaclass=ABCMeta and decorate as needed with @abstractmethod. Even though I'd looked at the Python documentation for both of these before, I never quite understood either of them. But, Dan's phrasing and presentation made them crystal clear on my first read.
One additional thing I like about the book is how Dan has included bits and pieces of his philosophy on Python, programming, writing good code, etc. Some people might be turned off by the editorializing, I suppose, but I really appreciate that the book provides these sorts of "meta" perspectives.
All in all, an excellent resource for someone with modest to moderate Python experience looking to round out their knowledge of some of the more subtle features/behaviors of the language.
One outstanding feature of the book is a short recap after each section, giving simple rules of thumb to to follow. This cleared up a lot of uncertainty for me about some python best practices. I really like the book "Fluent Python" as well, but this one has more simple and practical suggestions and was a very quick read.
Top international reviews
The main tag line of the title "Python Tricks - the Book" I think does it a dis-service (although I recognise the link with Dan's web RealPython and the tips and tricks email series). That title suggests a collection of disjointed tips and/or sometimes pointless tricks with the language. It is far from that. Instead you get a well thought out and substantial walk through many of the more advanced aspects of the language. But it is not a dry tome in the academic style. All is explained in an informal but thorough and lucid style, and even hitherto obscure topics like decorators and lexical closures now make sense to me. Also included is a link to additional (free) online resources to reinforce the book's contents. It is a good read for expanding your horizons, and one that will remain useful as a reference work when implementing some of the techniques with which you are not overly familiar.
Not one for total beginners, but if like me you find yourself at the stage of, "Well, I think I'm now OK with the basics of python, but where do I go next?" - this is the book for you. And at the price of the Kindle version , an absolute bargain.
Easy to read in chunks, and includes some useful insights into Python.
with the language development