[Python-Dev] PEP 318, a different approach (original) (raw)
Russell E. Owen rowen at cesmail.net
Fri Apr 16 19:52:43 EDT 2004
- Previous message: [Python-Dev] syncmail question - how to get submitter as From:?
- Next message: [Python-Dev] PEP 318, a different approach
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
def.iter
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: def.func def.instancemethod
- Previous message: [Python-Dev] syncmail question - how to get submitter as From:?
- Next message: [Python-Dev] PEP 318, a different approach
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]