function decorators

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


On 2010-09-28, Nick Donohue <ndonohue at gmail.com> 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.

-s
-- 
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nospam at seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- 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