Ian Kelly wrote:

@enclose
def test5(string, func):
     print(func(string))
test5('broken', func=str.upper)

Yes, that is a limitation -- one loses the func keyword for the decorated function. If I were to actually use this, I'd probably go with '_func' as the keyword.

~Ethan~

PS
Thanks for the code review!
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to