[Python-Dev] PEP 318, a different approach

Russell E. Owen rowen at cesmail.net
Fri Apr 16 19:52:43 EDT 2004

I had a strange idea for decorator syntax.

def.classmethod func(cls,...):

Multiple decorators are going to need the usual [] thing (or the current 
clumsy notation), but the strange thought is allowing


so one could be more explicit about defining iterator functions w/out 
adding a keyword.

Sorry to beat that dead horse. Back to the real notation.

-- Russell

P.S. one could imagine allowing these, as well,, but I can't imagine 
users typing them:

More information about the Python-Dev mailing list