[Python-Dev] Declaring setters with getters

Barry Warsaw barry at python.org
Thu Nov 1 03:23:11 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Oct 31, 2007, at 2:14 PM, Guido van Rossum wrote:

> On 10/31/07, Raymond Hettinger <python at rcn.com> wrote:
>>> I'd like to make this [propset] a standard built-in,
>>
>> +1 -- I find this to be an attractive syntax
>>
>>> I'd also like to change property so that the doc
>>> string defaults to the doc string of the getter.
>>
>> +1 -- This should also be done for classmethod,
>> staticmethod, and anything else that wraps functions.
>
> With this level of support, it could be implemented by this afternoon!
> (and backported to 2.4 within a week. ;-)

I know you're joking about the backporting.  Neal, no sneaking this  
into 2.5.2 now! :)

BTW, +1 on this.  I like Fred's suggestion of property.set().

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRyk4kHEjvBPtnXfVAQJ5SQP/Z4uofrSz0L5hgHvaC5MmGlFqxO2O/i8q
pZUurzbcRENCXhKSat5+qymyfOWyeO9rCgUbHq81af5tyUIDt9uo+6JxtBwVniEN
Fcc3qMmjNhBi9if1Rn1S8jTG0AC3KEHuL4qZmghAY7Lz4/8jOjtQmAWubJ+LmQlE
hxN+sdYqkm8=
=gA2F
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list