Is it possible to decorate a function based on a condition?
a'la:
if she.weight() == duck.weight():
@burn
def witch():
pass
I'm just wondering if logic could be used (when witch
is called?) to figure out whether or not to decorate witch
with @burn
?
If not, is it possible to create a condition within the decorator to the same effect? (witch
being called undecorated.)