[Python-Dev] PEP 318: Decorators last before colon (original) (raw)
Jeremy Hylton jeremy at alum.mit.edu
Tue Mar 30 14🔞26 EST 2004
- Previous message: [Python-Dev] PEP 318: Decorators last before colon
- Next message: [Python-Dev] PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 318: Decorators last before colon
- Next message: [Python-Dev] PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]