The Real Python Podcast cover image

Using an Ellipsis in Python & Goals for CPython 3.12

The Real Python Podcast

00:00

Using Dunder New in Python Object Orunty

Python has another way of building string like things. That's the user string object, which can be found in the collections module. User string is a wrapper class to the str data type. And as such, you can build on top of it by overloading the Dunder and Et method. The rest of the article walks you through how to modify a whack of Dunder methods that behaves as if it were mutable.

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