In python, how do I cast a class object to a dict

Private variables in Python

Descriptor in Python