DEV Community 👩‍💻👨‍💻

Discussion on: How to write better Python classes using Magic Methods

bikramjeetsingh profile image
Bikramjeet Singh Author

Thanks Vincent, both excellent points. Ideally, such magic methods are best used only in situations where it's immediately intuitive/apparent to the reader how the addition (or any other operation) would work. If the business logic behind the addition is more complex, it's probably worth it to write a fresh method instead.