python 3.x - Get public properties from a class -
i of public properties of instance of class in python 3, in dictionary, function public
, without of function in class. example, instance of following class :
class test: def __init__(self): self.a = 5 self.__b = 2 @property def c(self): return 9 def d(self): return 2 def __e(self): return 2
i following dict :
{'a': 5, 'c': 9}
thanks in advance responses.
Comments
Post a Comment