2 ms·
> I learn a lot through examples, and seeing so many examples of functioning code was very beneficial. Quick sidebar: if you're looking for an intermediate/adv
by neoncontrails 7y ago
> I learn a lot through examples, and seeing so many examples of functioning code was very beneficial.
Quick sidebar: if you're looking for an intermediate/advanced-level book with a similar style of pedagogy, I can't recommend highly enough The Python Cookbook by David Beazley. There are recipes in that book that I'm quite honestly unsure how I would function without. And to the credit of the author, every code example functions as a complete, minimal, working example: paste it into a live python3.8 REPL session and it "just works" (which is contrary to what you might expect of a book published in 2013). Also, it's one of a few books that has a puckish, hackery-sort of mentality and doesn't shy away from hot-button topics like metaprogramming, tampering with the GIL, mining program runtime data from previous stackframes, etc.