[IronPython] .NET attributes
Hernan M Foffani
hfoffani at gmail.com
Fri Sep 15 15:33:14 CEST 2006
> >> We're tentatively thinking that this is a 2.0 feature but if
> >> we figured out a syntax we really liked we'd try to get it into 1.1.
> > It seems as if there are two clean ways to do this in my mind.
> > 1. Use python2.4's decorator sytax and extend it to allow class and
> > class variable attribute declaration. This has the pitfall of
> > breaking cpython compatibility with decorators though. At the same
> > time, why use decorators when you can use attributes?
> When this was last discussed on Python-Dev, Guido agreed that class
> decorators could go into core Python. (Partly because of the IronPython
> The best thing to do (IMHO) is to see if a syntax can be agreed on
> Python-Dev, to ensure future compatibility with CPython.
A proof of concept that demonstrates the use of class decorators
might help them decide.
More information about the Ironpython-users