Le 26/06/2020 à 15:12, Peter Otten a écrit :
Unknown wrote:


The getter/setter of the property builtin return a new property

p = property()
q = p.getter(None)
p is q
False

where you

      def getter(self, fget):
          self.fget = fget
          return self

modify the existing one.


Yes you are right. Thank you for noticing that.

My property seems better since you can choose any names
for the functions to be used for fget, fset and fdel.



--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to