[Zope3-dev] Re: zope.cachedescriptors outdated

Marius Gedminas mgedmin at b4net.lt
Sun Feb 25 08:04:57 EST 2007


On Sat, Feb 24, 2007 at 09:59:16PM +0100, Philipp von Weitershausen wrote:
> Jeff Shell wrote:
> >With `readproperty`, you can still have the simple
> >getter-method-wrapper property, with the ability to replace the value
> >on instances. So no, the builtin 'property' descriptor is not fine.
> >`property` came into being when Python got descriptors, but before it
> >got decorators. By grand design or divine accident,
> 
> Clearly Guido's time machine is to blame here :)
> 
> >the fact that the
> >first argument for `property` is the getter function makes it a useful
> >decorator. But it wasn't written with decorators in mind. It was
> >written for ``x = property(getX, setX, delX)``, or some combination
> >thereof.
> 
> I once mused about this and came up with rwproperty (a decorator 
> spelling for getters *and* setters, del'ers)

rwproperty is incredibly cool.  I'd love to see it in the Python
standard library.

Marius Gedminas
-- 
This is an object-oriented system.  If we change anything, the users object.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070225/21767a7d/attachment.bin


More information about the Zope3-dev mailing list