def _scalar_property(fieldname):
 def _getter(self):
  'Scalar property getter.'
  return self._properties.get(fieldname)
 def _setter(self, value):
  'Scalar property setter.'
  self._patch_property(fieldname, value)
 return property(_getter, _setter)

def _scalar_property ( fieldname ) : def _getter ( self ) : return self . _properties . get ( fieldname ) def _setter ( self , value ) : self . _patch_property ( fieldname , value ) return property ( _getter , _setter )
create a property descriptor around the :class:_propertymixin helpers .