Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They are called dunder methods, meaning "double under". It's 2 underscores.

I've had snippets in my editor for approximately 15 years at this point so I don't have to manually type any of the dunder methods. Would recommend!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: