{SPAM?} Decorators? Why have a special construct to support a pattern?

Jack Diederich jack at performancedrivers.com
Fri Aug 13 10:38:43 EDT 2004


On Thu, Aug 12, 2004 at 04:58:41PM +0800, Simon Wittber wrote:
> Decorators...
> 
> Why do we need a special construct to support a pattern? 
> 
> Do lots of people really use decorators that often?

I've said it in other places, writing

foo = mutate(foo)

is boilerplate.  I don't like boilerplate - it takes time and
is an extra step to get wrong.  It is also boilerplate somewhere
far away from the original definition which means it can easilly
be overlooked or forgotten.

-Jack



More information about the Python-list mailing list