The Real Python Podcast cover image

Continuing to Unravel Python's Syntactic Sugar With Brett Cannon

The Real Python Podcast

00:00

Dunder Itter on an Iterator, Is Iterable?

The dunder itter special method in that specific case is doing something very different. It's a one way thing, right? Iterable to iterator, and then your that's the end of the line. But when you defined underiter on aniterator, it becomes a circular loop at that end. So for certain cases, it makes sense not to return self ondunde iter write some objects.

Transcript
Play full episode

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