John Henry wrote:
> I must be very thick.  I keep reading about what decorators are and I
> still don't have a good feel about it.  See, for example:
>
> http://alex.dojotoolkit.org/?p=564
>
> What exactly do I use decorators for?

Metafunctions.  Saying

@mydecorator
def foo(...):
  ...

is just an alternative way of writing:
def foo(...):
  ...
foo = mydecorator(foo)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to