2 great benefits of Python generators (and how they changed me forever)
I had no idea how important it would turn out to be. It changed the way I wrote software forever, in every language.
By "it," I mean a Python construct called generators. It´s hard to convey everything they can do for you in a few words; you´ll have to keep reading to find out. In a nutshell: they help your program efficiently scale, while at the same time providing delightful encapsulation patterns. Let me explain.
Image from http://wikieducator.org/
Consultar la fuente de esta información