[Python-Dev] functions decorators in 2.4?

Martin Zarate mzarate at uoguelph.ca
Thu Jun 17 15:56:57 EDT 2004

Why not use the underused "as" keyword for decorators?

That is,

def foo(bar, baz) as StaticMethod:

It would be very handy for classes, as I've worked with custom class 
structures (such as an overcomplicated interface-based structure that I was 
experimenting with) that it would be useful for.

Are there plans to extend this to fully custom blocks and statements like in 
Ruby?  Or will it only be for modified def and class statements?

More information about the Python-Dev mailing list