Static method and class method comments

Terry Reedy tjreedy at home.com
Thu Aug 2 12:33:31 EDT 2001


"Markus Schaber" <markus at schabi.de> wrote in message
news:1065976.8hzESeGDPO at lunix.schabi.de...
> Hello,
>
> Terry Reedy <tjreedy at home.com> schrub:

> > or tell users to write simple wrapper of multiple modifiers:
> >
> > def multimod(f): return mod2(mod1(f))
>
> It might even be possible to allow the lambda operator to create
such
> wrapper functions instantly.

To use lambda f: mod2(mod1(f)), instead add this to the grammar:

functionmodifier: identifier | lambda_expression #or whatever lambdas
are called

Terry J. Reedy






More information about the Python-list mailing list