About 23,600 results
Open links in new tab
  1. Descriptor Guide — Python 3.14.6 documentation

    Descriptor Guide ¶ Author: Raymond Hettinger Contact: <python at rcn dot com> Contents Descriptor Guide Primer Simple example: A descriptor that returns a constant Dynamic lookups Managed …

  2. Python Descriptors: An Introduction

    Nov 27, 2019 · Descriptors are a specific Python feature that power a lot of the magic hidden under the language’s hood. If you’ve ever thought that Python descriptors are an advanced topic with few …

  3. Descriptor in Python - GeeksforGeeks

    Jul 11, 2025 · Further access returns the instance value. Python’s built-In ways to create descriptors 1. Using property () function property () function creates managed attributes in a class by binding getter, …

  4. Descriptor Objects — Python 3.14.6 documentation

    6 days ago · The type object for member descriptor objects created from PyMemberDef structures. These descriptors expose fields of a C struct as attributes on a type, and correspond to …

  5. Python Descriptors

    In this tutorial, you'll learn about Python descriptors, how they work, and how to apply them effectively.

  6. Understanding __get__ and __set__ and Python descriptors

    Sep 26, 2010 · The descriptor is how Python's property type is implemented. A descriptor simply implements __get__, __set__, etc. and is then added to another class in its definition (as you did …

  7. Python - Descriptors - Online Tutorials Library

    Python Descriptors are a way to customize the access, assignment and deletion of object attributes. They provide a powerful mechanism for managing the behavior of attributes by defining methods that …

  8. Python Descriptors Tutorial - DataCamp

    Feb 21, 2020 · Python descriptors or, more generally, descriptors provide you a powerful technique to write reusable code that can be shared between classes. They might seem similar to the concept of …

  9. Python Descriptors Tutorial: Descriptor Protocol Explained

    Apr 8, 2025 · Discover Python descriptors: control attribute access in your classes with examples. Learn data vs non-data descriptors and best practices.

  10. Descriptors - Python Morsels

    Dec 16, 2023 · Descriptors are objects that can customize what happens when we lookup the class attribute they're attached to. A data descriptor is an object that has a __get__ method and a __set__ …