> Certainly not. So why do you expect it to work with a decorator? A
> decorator is an expression that must yield a callable.
>
> Make a simple test:
>
> def mydecorator(f):
>      print "I'm decorating"
>      yield f


Sorry, this must be a "return f" of course.


Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to