On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote:
> Charlie Moad wrote:
> >> Take away decorator support and you'll lose at least this Python
> >> programmer...
> >> Decorators and attributes have at least some commonality, which is why
> >> this syntax ended up in Python in the first place...
> >> Allowing decorator syntax in places CPython doesn't is better than not
> >> allowing it where it does...
> >>
> >
> > So it sounds like people want decorator syntax for attributes.  Would
> > it be sufficient to check for inheritance from System.Attribute to
> > distinguish the two?
> Sounds very good.
>
> > Also attributes being classes and decorators
> > functions might help.

> Can't CPython decorators also be classes (I haven't tried this) ?

Callable classes I suppose....
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to