The Real Python Podcast cover image

Constructing Python Library APIs & Tackling Jinja Templating

The Real Python Podcast

00:00

Python's Range Optimization

Garanor talks about how a range may look like a function, because you call it. But if you dig deeper, it's actually a class and its constructor is when you call,. you know, range and put the different parameters within it. The rest of the article talks about is a range quote unquote better than a list. And then has different looks at lists can have different objects within them. They aren't ordered or, you know, by default, they're not sorted.

Play episode from 08:39
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