Managing Instance Attributes in Python

Creating Managed Attributes in Python

Sadrach Pierre, Ph.D.
Towards Data Science
3 min readMay 10, 2020

--

Often times in the implementation of a python class, it would be useful if we could easily add extra processing to getting and/or setting an instance attribute. For example, it would be useful to be able to perform type checking or some other form of validating during getting/setting instance attributes. In this post, we will discuss…

--

--

Writer for Built In & Towards Data Science. Cornell University Ph. D. in Chemical Physics.