Currently the python bindings have get/set functions as in the C api,
in addition to this it has object properties which have their
functionality implemented by simply calling those functions, such as
in the below example:

def remember_position_set(self, remember):
   elm_video_remember_position_set(self.obj, remember)

def remember_position_get(self):
   return bool(elm_video_remember_position_get(self.obj))

property remember_position:
   def __get__(self):
       return self.remember_position_get()
   def __set__(self, remember):
       self.remember_position_set(remember)

I propose that the get/set functions are removed from the python api
and replaced by the properties, so the above example simply becomes:

property remember_position:
    def __get__(self):
        return bool(elm_video_remember_position_get(self.obj))
    def __set__(self, remember):
        elm_video_remember_position_set(self.obj, remember)

Please tell me what you think about this change.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to