(cls, name)
Declare getter and setter property for a given name.
Declare getter and setter property for a given name.
Declare getter and setter property for a given name .
def _declare_dict_property(cls, name):
  ''' Declare getter and setter property for a given name. '''

  def getter(self):
    return self[name]

  def setter(self, value):
    self[name] = value

  prop = property(fget=getter, fset=setter)
  setattr(cls, name, prop)
def _declare_dict_property ( cls , name ) : def getter ( self ) : return self [ name ] def setter ( self , value ) : self [ name ] = value prop = property ( fget = getter , fset = setter ) setattr ( cls , name , prop )