[Python-Dev] Re: PEP 318: Decorators last before colon

Samuele Pedroni pedronis at bluewin.ch
Wed Mar 31 08:10:47 EST 2004


At 21:52 30.03.2004 -0500, Terry Reedy wrote:

>[[decorator]]      # easy enough to type, or

this already just valid syntax today

><decorator>      # almost as easy, or
><<decorator>>
>
>Is there near precedent in other languages that I don't know of?

VB.NET uses <...> for .NET attributes instead of [...].

OTOH <...> is a usual syntax for parametrized types, e.g. C++ templates, 
Java,C# generics and others

It seems VB.NET will use a syntax with (...) for that. 




More information about the Python-Dev mailing list