On Wed, Sep 8, 2010 at 7:03 AM, Matti Airas <[email protected]> wrote: > Hi list, > > encouraged by the one private endorsement I got ;-), I moved ahead and made > a new PSEP draft for the QtCore.Property function: > > http://www.pyside.org/docs/pseps/psep-0103.html > http://www.pyside.org/docs/pseps/psep-0103.txt
What is the value of calling it Property instead of pyqtProperty? Have you considered supporting the property decorator syntax introduced in python-2.6? From http://docs.python.org/whatsnew/2.6.html : class C(object): @property def x(self): return self._x @x.setter def x(self, value): self._x = value @x.deleter def x(self): del self._x class D(C): @C.x.getter def x(self): return self._x * 2 @x.setter def x(self, value): self._x = value / 2 Cheers, Darren _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
