Real Python Tutorials

Python's property(): Add Managed Attributes to Your Classes
NEW

Python's property(): Add Managed Attributes to Your Classes

In this tutorial, you'll learn how to create managed attributes in your classes using Python's property(). Managed attributes are attributes that have function-like behavior, which allows for performing actions during the attribute access and update.

Oct 21, 2024 intermediate best-practices python