73,500 results
Open links in new tab
  1. Python's Magic Methods: Leverage Their Power in Your Classes

    Jan 3, 2024 · In this tutorial, you'll learn what magic methods are in Python, how they work, and how to use them in your custom …Read more

  2. Dunder or magic methods in Python - GeeksforGeeks

    Mar 18, 2026 · Python magic (dunder) methods are special methods with double underscores __ that enable operator overloading …Read more

  3. Python Magic Methods - W3Schools

    What are Magic Methods? Magic methods are special methods whose names start and end with double underscores, like __init__ () …Read more

  4. A Guide to Python's Magic Methods « rafekettler.com

    So, to fix what I perceived as a flaw in Python's documentation, I set out to provide some more plain-English, example-driven …Read more

  5. 3. Data model — Python 3.15.2 documentation

    1 day ago · Python methods (including those decorated with @staticmethod and @classmethod) are implemented as non-data …Read more

  6. Python Magic Methods (Dunder) — Complete Guide | W3docs

    Learn Python magic methods (__init__, __str__, __repr__, operator overloading, container and context manager protocols) with …Read more

  7. The Magic Methods in Python - AskPython

    Jul 30, 2022 · Definition: When we create an object, the Python interpreter calls special functions in the backend of code execution. …Read more

  8. How Python Magic Methods Work: A Practical Guide

    Mar 20, 2025 · Python's magic methods provide a powerful way to make your classes behave like built-in types, enabling more …Read more

  9. Magic or Dunder Methods in Python - TutorialsTeacher.com

    Learn what is magic methods in Python and how to implement magic methods in your custom classes.

  10. magic method | Python Glossary – Real Python

    In Python, magic methods, also known as dunder (double underscore) methods, are special methods that you can define in your …Read more