how to find the last decorator of a chain

Benjamin Peterson benjamin at python.org
Sat May 30 19:45:53 EDT 2009


Gabriel <gabriel <at> opensuse.org> writes:

> In my understanding this equivalent to:
> 
> render('a',
>  render('b',
>   view(***)))
> 
> Is there any way to know, in this case, that 'a' is the 'default' format?

You could set an attribute on the function indicating the default.








More information about the Python-list mailing list