[Python-Dev] Extended Function syntax

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 29 Jan 2003 11:24:57 +1300 (NZDT)


Walter D=F6rwald:

> What happened to Guido's proposal?
>=20
> class Foo(object):
>      property myprop:
>          """A computed property on Foo objects."""
>=20
>          def __get__(self):
>              return ...
>          def __set__(self):
>              ...
>          def __delete__(self):
>              ...

I'd be satisfied with that, I think. If Guido likes it too,
that's great, and I'll happily give it a +1.

Greg Ewing, Computer Science Dept, +---------------------------------=
-----+
University of Canterbury,=09   | A citizen of NewZealandCorp, a=09  |
Christchurch, New Zealand=09   | wholly-owned subsidiary of USA Inc. =
 |
greg@cosc.canterbury.ac.nz=09   +------------------------------------=
--+