Uploaded October 2023 | Updated September 2026, 1 week ago
What happens when python calculates 1 + 1? In this lightning talk, we'll go into how python makes use of the double underscored (dunder) methods, such as add and radd to provide a rich and comprehensive operator overloading mechanism. We'll strip back the abstraction, and go into the logic of how python decides to convert syntactical sugar into user specfied method calls, touching on reversed dunders, the NotImplemented Singleton, and how dunders work together. With that, we'll discuss how to properly implement custom operators overloading, and explain the reasoning behind certain good practices.
Javier is a programming hobbyist, having started 5 years ago after discovering Python. Since then, he's had a brush with many fields, from competing in CTFs to interning at DSTA for basic Deep Learning research.
Visit https://geekcamp.sg for more information about GeekcampSG
What happens when python calculates 1 + 1? In this lightning talk, we'll go into how python makes use of the double underscored (dunder) methods, such as add and radd to provide a rich and comprehensive operator overloading mechanism. We'll strip back the abstraction, and go into the logic of how python decides to convert syntactical sugar into user specfied method calls, touching on reversed dunders, the NotImplemented Singleton, and how dunders work together. With that, we'll discuss how to properly implement custom operators overloading, and explain the reasoning behind certain good practices.
Javier is a programming hobbyist, having started 5 years ago after discovering Python. Since then, he's had a brush with many fields, from competing in CTFs to interning at DSTA for basic Deep Learning research.
Visit https://geekcamp.sg for more information about GeekcampSG










