On Wed, Jun 29, 2011 at 1:30 PM, Ethan Furman <et...@stoneleaf.us> wrote:
> How about just having one bit of code that works either way?

How would you adapt that code if you wanted to be able to decorate a
function that takes arguments?

This also won't work if the argument to the decorator is itself a
callable, such as in the OP's example.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to