News for hackers. Stuff that matters.
Re:Python decorators they don't tell you about by Walkman on Sunday January 07, 2018 @03:11PM (#16092403)
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.
Re:Python decorators they don't tell you about by abhirag on Monday January 08, 2018 @01:00AM (#16094945)
Returning 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.