2 ms·
The best book I've found for learning how to get the best from Python's language features is Powerful Python: https://www.amazon.com/d/0692878971 https://www.am
by rahimnathwani 8y ago
The best book I've found for learning how to get the best from Python's language features is Powerful Python: https://www.amazon.com/d/0692878971 https://www.amazon.com/d/0692878971
'Idiomatic Python' is also good, but I would suggest that more for a beginner, or for someone transitioning to Python from another language. If you have a colleague who loops through a collection by creating an incrementing their own counter variable, then give them a copy of this book.
If you already use most of python's idioms correctly (e.g. if you've learned programming primarily from resources about python), get 'Powerful Python' to learn more about how things work under the hood, and learn ways to make your code more readable and/or more efficient (for CPU and/or memory).
- rahimnathwani 8y agoI just found this post talking about the book 'Idiomatic Python': https://hackernoon.com/going-beyond-the-idiomatic-python-a321b6c6a5e6 https://hackernoon.com/going-beyond-the-idiomatic-python-a32... It points out some limitations of that book, including one specific example (the 'evil robots attacking' part) that bothered me for the same reasons it bothered the article author.