[Python-Dev] method decorators (PEP 318) (original) (raw)
Barry Warsaw barry at python.org
Sat Mar 27 15:10:07 EST 2004
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 2004-03-27 at 12:39, Bernhard Herzog wrote:
Has somebody suggested the following yet?
def [classmethod] foo(cls, blooh, bla): pass
Yes, but I'm not sure who .
Subversive instantly rejected idea of the day: syntactically allow the square brackets in any of these three locations:
def [decorator] method [decorator] (args) [decorator]
You'd probably want to disallow more than one [decorator] per definition (but maybe not). Each of these locations is supported by a different valid use case, IMO, so why not allow any of them?
code-consistency-be-damned-ly y'rs, -Barry
- Previous message: [Python-Dev] method decorators (PEP 318)
- Next message: [Python-Dev] method decorators (PEP 318)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]