[Python-ideas] Syntax for defining parametric decorators

Nick Coghlan ncoghlan at gmail.com
Mon Jul 9 04:02:48 CEST 2012


On Mon, Jul 9, 2012 at 11:55 AM, Devin Jeanpierre
<jeanpierreda at gmail.com> wrote:
> Nothing about the OP's suggestion was specific to "function decorator
> factories".

The sole motivating use case presented was "A common stumbling block
for new users is writing decorators that take
arguments."

It's a terrible motivating use case for curried functions, because
they only work for the most trivial of decorator factories.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list