Python 中的魔术方法(dunders)是否与 C++ 中的运算符重载相同?

Are magic methods (dunders) in Python same as operator overloading in C++?

例如,在Python中使用__eq__与在C++中使用operator==一样吗?魔法方法在Python中还有其他作用吗?

是也不是。虽然 implementing/overriding __eq____div__ 等与其他语言中的运算符重载相同,但某些 __ 方法不一定类似于其他语言中的东西。