Inside Python generators

Published: 01 April 2021
on channel: Python and Pandas with Reuven Lerner
994
69

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/!


On this page of the site you can watch the video online Inside Python generators with a duration of hours minute second in good quality, which was uploaded by the user Python and Pandas with Reuven Lerner 01 April 2021, share the link with friends and acquaintances, this video has already been watched 994 times on youtube and it was liked by 69 viewers. Enjoy your viewing!