4 ms·
the article mention multiple examples, one of being the "registering things" when it returns the same function untouched, just put away the function instance in
by Walkman 9y ago
the article mention multiple examples, one of being the "registering things" when it returns the same function untouched, just put away the function instance in a list or something to use it later.
- abhirag 9y agoReturning a function would be returning a callable object, which is what I was alluding to. The section under "Decorator Toolbox" contains no suggested usecases for returning a non-callable object, will try and think of something.