racrui
Re:Ask HN: How can I get better at writing production-level Python?
on Tuesday July 18, 2023 @09:51PM (#36781263)
This is great recommendation, you can get very far by reading well written code. These have very well written Python, exposing much of the language expressiveness:
- https://github.com/python-attrs/attrs
- https://github.com/mahmoud/glom
- https://github.com/pytoolz/toolz
- https://github.com/Suor/funcy
- https://github.com/dabeaz/curio
ps: dabaez has great educational content on writing idiomatic python, definitely worth checking out
An honorable mention of norvig's classic essays, which got me into python while I was in college, over 12y ago: https://norvig.com/spell-correct.html.Aside from reading code, _writing_ something that you know it exist (e.g glom) and then comparing it to how others have done it is also a great learning experience.