[Python-ideas] C# style properties

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jul 13 03:40:59 CEST 2007

Josiah Carlson wrote:
>     class foo:
>         class a(Property):
>             ''' documentation '''
>             def get(self):
>                 return self._a
>             ...
> I'm curious as to why this still gets
> brought up when the obvious syntax is more or less identical to
> basically all reasonable alternate syntaxes.

I would dispute that anything involving a class statement
that creates something other than a class is "obvious".


More information about the Python-ideas mailing list