It would be nice if it was possible to use the @q decorator for a single function call (i.e., q(func)(...)). The idea would be for q to check whether its argument is callable, and, if it is, wrap it with its arguments-and-results-logging version.
Extra points if this checks whether the next token is a ( before deciding whether to do this but that may be overkill.
Thoughts?
It would be nice if it was possible to use the
@qdecorator for a single function call (i.e.,q(func)(...)). The idea would be forqto check whether its argument is callable, and, if it is, wrap it with its arguments-and-results-logging version.Extra points if this checks whether the next token is a
(before deciding whether to do this but that may be overkill.Thoughts?