Don't be a dunderhead - GeekcampSG 2023
GeekcampSG
0:00 / 0:00
Don't be a dunderhead - GeekcampSG 2023
58 просмотров · 3 г. назад
GeekcampSG
1,36 тыс. подписчиков
58 просмотров · 3 г. назад
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