[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)

Phillip J. Eby pje at telecommunity.com
Thu Apr 1 18:21:47 EST 2004


At 06:02 PM 4/1/04 -0500, Bob Ippolito wrote:

No, that's a misunderstanding.. it was by coincidence alone that the last example I gave had two callbacks with an identical type signature. Using a "with" block for decorators is as nonsensical as this:

with args(x): def foo: pass def bar: pass

I'm not sure I'd go that far. For 'classmethod' it can actually be attractive to group a bunch of them together. On the other hand, that's the only use case that comes to mind for grouping a bunch of functions under the same decorator list.



More information about the Python-Dev mailing list