(An Unofficial) Python Tutorial Wiki

putting the community back in "maintained by the community"

44tq

I agree that the decorators should be moved to a later place, and I also think the example could be simplified (an adding function is a bit too abstract for me); how about a "debugging decorator" instead, which simply prints the arguments and return values for a decorated function?

Comments

A "debugging decorator" is definitely more useful. I've always had pretty good success explaining decorators to people with adding functions, which is why I used it as the example.