How to make a class property?
How to make a class property? Question: In python I can add a method to a class with the @classmethod decorator. Is there a similar decorator to add a property to a class? I can better show what I’m talking about. class Example(object): the_I = 10 def __init__( self ): self.an_i = 20 @property def …