About 39,000,000 results
Open links in new tab
  1. python-magic · PyPI

    Jun 7, 2022 · python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file …

  2. Python's Magic Methods: Leverage Their Power in Your Classes

    In this tutorial, you'll learn what magic methods are in Python, how they work, and how to use them in your custom classes to support powerful features in your object-oriented code.

  3. 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 intuitive and expressive code. Throughout this guide, we've …

  4. Dunder or magic methods in Python - GeeksforGeeks

    Aug 7, 2024 · Python Magic methods are the methods starting and ending with double underscores '__'. They are defined by built-in classes in Python and commonly used for …

  5. 11 Python Magic Methods Every Programmer Should Know

    In this article, we’ll explore magic methods in Python by creating a simple two-dimensional vector Vector2D class. We’ll start with methods you’re likely familiar with and gradually build up to …

  6. 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.

  7. Python Magic Methods

    In this tutorial, we will learn about Magic methods in Python, and how to customize the behavior of classes, with examples. We shall look into __str__ (), and __add__ () for examples.

  8. Mastering Magic Methods & Operator Overloading in Python

    Magic methods, denoted by double underscores __ (e.g., init, str), are automatically triggered when specific operations are performed on objects. They allow objects to interact with …

  9. python-magic Python Guide [2025] | PyPI Tutorial

    Nov 16, 2025 · python-magic is file type identification using libmagic that provides essential functionality for Python developers. With >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4.* support, it …

  10. GitHub - ahupp/python-magic: A python wrapper for libmagic

    python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file types. This …