Re:Understanding Python through its builtins
by usrme on Sunday October 10, 2021 @02:29PM
(#28820803)
I would recommend "Robust Python" by Patrick Viafore. It teaches you a lot about type annotations (among other thing) and gave me personally a whole new way of looking at the code that I write.
[ Parent
| on HN ]
Re:Understanding Python through its builtins
by cinntaile on Monday October 11, 2021 @12:26AM
(#28824669)
Thanks for the different suggestions, I went with this one. Fluent Python also looked promising but I can't buy the 2nd ed yet.
Re:Understanding Python through its builtins
by patviafore on Saturday October 16, 2021 @10:48PM
(#28893522)
Author of Robust Python here: I definitely recommend Fluent Python as well once the 2nd edition is available. I wrote Robust Python to focus very much on how to write Python in a long-lived codebase and how to do trade-offs for readability/maintainability/testability/etc. It also covers a lot of things outside of standard built-ins (such as acceptance testing, mutation testing, pydantic, type checkers, etc.). I find Fluent Python to be more focused on more of the built-ins, and I think it might cover some of the performance trade-offs you might be looking for.
Long story short : I think both have a lot of value (but beware I'm quite biased on Robust Python)