Is there any need for overloading operators in python?

Same need as in any other language that supports operator overloading. If you want to perform an addition (for example) on two instances of a custom object, what would produce clearer/cleaner code



myobj1 + myobj2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.