Talk Python To Me cover image

#25: Effective Python

Talk Python To Me

00:00

How to Create a Stream of Generators

If you start by at the base level, like if you want to switch to generator code, it's difficult because you have to put generators all the way down to the leaves of your call stacks. But if you start with generators at the leaves, then it's very easy to start saying, hey, I'm going to turn this into a streaming generator. So creating those cascades of generators becomes very straightforward. And so you can get quick, you know, very fast executing code that's easy to follow and uses a low amount of memory, very,you know, very cheaply.

Play episode from 18:11
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app