[Python-Dev] PEP 318: Decorators last before colon
Jeremy Hylton
jeremy at alum.mit.edu
Tue Mar 30 14:18:26 EST 2004
On Tue, 2004-03-30 at 06:17, Ka-Ping Yee wrote:
> Three different positions for decorators have been suggested:
>
> (a) def [decorator] func(arg, arg):
>
> (b) def func [decorator] (arg, arg):
>
> (c) def func(arg, arg) [decorator]:
Another possibility that has been suggested is
[decorator]
def func(arg, arg):
This has some of the same readability benefits as (c).
Jeremy
More information about the Python-Dev
mailing list