Why are only the properties defined in __init__
listed in the __dict__
attribute of an instance of the class?
Python 3.4.3 (default, Jan 11 2016, 09:37:52)
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class C(object):
... prop_1 = 'value 1'
... def __init__(self):
... self.prop_2 = 'value 2'
... def set_prop_3(self):