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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -