[Python-Dev] PEP 318 - posting draft
Thomas Heller
theller at python.net
Tue Mar 23 14:41:38 EST 2004
Guido van Rossum <guido at python.org> writes:
>> def func [dec1, dec2, ...] (arg1, arg2, ...):
>> pass
>>
>> Quixote's Page Template Language uses this form, but only supports a
>> single decorator chosen from a restricted set. For short lists it
>> works okay, but for long list it separates the argument list from the
>> function name.
>
> OTOH, for long argument lists, the "preferred" form has the reverse
> problem: the decorators are separated from the function name by the
> long argument list.
>
> The question then becomes, what is more likely: long argument lists or
> long lists of decorators? I *know* that (at least in certain code
> bases :) long argument lists are common. Will long lists of
> decorators ever become popular?
I don't think so. Although even a single decorator may be a function
taking quite some arguments.
Thomas
More information about the Python-Dev
mailing list