[Python-ideas] C# style properties

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 15 02:57:17 CEST 2007

Neil Toronto wrote:
> Greg Ewing wrote:
> >   intance foo(property):
> Surely you meant to write "instance". :)

Oops, yes.

> Seems this sort of thing would be trivial with a class decorator, 
> something like "@instance" or "@oneinstance".

I have much the same feeling about class decorators
that don't return a class. You're still writing
'class foo' yet not defining foo to be a class.


More information about the Python-ideas mailing list