decorators only when __debug__ == True

Steve Howell showell30 at yahoo.com
Thu Apr 1 16:07:53 CEST 2010


On Apr 1, 6:16 am, Steve Holden <st... at holdenweb.com> wrote:
> MRAB wrote:
>
> > I had the following idea: define the terms 'decorator', 'decoration' and
> > 'decoratee'. The decorator applies the decoration to the decoratee. The
> > decoratee is the function defined locally in the decorator.
>
> It would make more sense (to me, at least) if the decoratee were the
> function passed as an argument to the decorator.
>

Me too.  I do like the idea of coming up with a consistent terminology.



More information about the Python-list mailing list