On 3/28/06, Samuele Pedroni <pedronis at strakt.com> wrote: > Mike Krell wrote: > >Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes: > >>I've just been playing around with metaclasses, and > >>I think I've stumbled across a reason for having > >>class decorators as an alternative to metaclasses > >>for some purposes. > > > >There has also been discussion on the IronPython mailing list that class > >decorators would be a very useful syntax for expressing .NET attributes. > > > >http://lists.ironpython.com/pipermail/users-ironpython.com/2006-March/002007.html > the same is true for Jython and Java annotations. OK, I'm convinced (mostly by the awful hackery that Phillip so proudly exposed :-). I propose that someone start writing a Py3k PEP for class decorators. I don't think it's fair to the 2.5 release team to want to push this into 2.5 though; how about 2.6? -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4