Decorator syntax

Anthony Baxter anthonybaxter at gmail.com
Sat Aug 7 06:47:08 EDT 2004


On Sat, 07 Aug 2004 16:28:11 +0600, Yawar Amin <yawar.amin at gmail.com> wrote:
> How about
> 
> def foo(a, b, c):
>      foo.accepts = (int, int, list)
>      foo.author = 'Chris King'

How would you express foo=classmethod(foo) in this syntax? Far better to have
one flexible tool in the toolbox than a host of little, less functional tools.



More information about the Python-list mailing list