When we use "yield" in a generator function, we tell the generator to go to sleep until our next iteration. But how does it know where it left off? How does it keep track of its internal state? In this video, I show you the internals of generators, and how Python uses built-in data structures to keep track of things.
You can get the Jupyter notebook for this video at https://github.com/reuven/YouTube-not... .
And don't forget that you can get my free, weekly "Better developers" newsletter at https://BetterDevelopersWeekly.com/!
Nesta página do site você pode assistir ao vídeo on-line Inside Python generators duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python and Pandas with Reuven Lerner 01 Abril 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 994 vezes e gostou 69 espectadores. Boa visualização!