function decorators

Seebs usenet-nospam at
Wed Sep 29 00:12:47 CEST 2010

On 2010-09-28, Nick Donohue <ndonohue at> wrote:
> why would I use these? wouldn't it be more flexible to not write the
> decorator before the function definition, so I could choose to wrap it
> or not?

The utility is that it lets you modify all calls to a function at once,
without changing all the instances in a ton of source code.

Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nospam at <-- lawsuits, religion, and funny pictures <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.

More information about the Python-list mailing list