Learn Python Generators

Originally posted on 2020-04-02 There are already many very helpful tutorials on the subject out there. In this piece I wanted to share my own take and experience with python generators that I have gathered while working on production-level Python code. Introduction Whether you are familiar with Python generators or you have only heard a thing or two about them, allow me to summarise the 2 main properties of generator functions:...

March 5, 2023 · 10 min · Evgeny Roskach