[Python-Dev] Declaring setters with getters

Guido van Rossum guido at python.org
Wed Oct 31 19:25:30 CET 2007

On 10/31/07, Georg Brandl <g.brandl at gmx.net> wrote:
> Guido van Rossum schrieb:
> > I'd like to make this a standard built-in, in the hope the debate on
> > how to declare settable properties.
> +1. I'm waiting for the obligatory cry for @propdel though :)

propdel: just say no.

> > I'd also like to change property so that the doc string defaults to
> > the doc string of the getter.
> I may be misunderstanding, but isn't that what patch #1434038 already
> implemented in 2.5?

D'oh, you're right. I tested this with 2.4 (which is the default
Python at Google). +1 on this proposal then. :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list