Python Forum

Full Version: Hi, looking for "dunder" tutorials.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I've used OOP a few times with classes and stuff, and I've used the __str__ and __repr__ dunders in the game I'm creating. I noticed there are more than one of these "dunders", and I don't actually know what any of them do. I can't find any good tutorials on youtube that I can actually follow along with, and my school blocks all kinds of things. Like if I need help with something, my school even blocks stackoverflow. If you guys could link me to a few good tutorials that aren't videos, that'd be great. Thank you
You may look at Basic customization. Is that what you mean?
Not a tutorial, but an amazing list of the dunders. Basically go to python.org and search for __

Docs link