[Python-Dev] Re: def fn (args) [dec,dec]: (original) (raw)
Guido van Rossum guido at python.org
Fri Aug 6 23:16:22 CEST 2004
- Previous message: [Python-Dev] Re: def fn (args) [dec,dec]:
- Next message: [Python-Dev] Re: def fn (args) [dec,dec]:
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's not obvious to me, but given Guido's concerns, what are the arguments against
def foo [deco1(xyz), deco2] (arg1, arg2, *args, **kwargs):
Didn't you see my keynote at PyCon? I showed all 5 places where [deco] can be inserted in a function declaration (before the colon), because all 5 had been proposed, and 4 out of 5 had been rejected by then.
Since all functions MUST have a parameter list, everyone knows to keep scanning after the decorators.
Pretty much the same arguments apply as with the decorators after the argument list, plus some people like to grep for the function name followed by a left paren.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Re: def fn (args) [dec,dec]:
- Next message: [Python-Dev] Re: def fn (args) [dec,dec]:
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]