Why not use juxtaposition to indicate function application

Chris Rebert clp2 at rebertia.com
Fri Mar 16 22:02:51 CET 2012


On Fri, Mar 16, 2012 at 1:57 PM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 16.03.12 18:45, Steven D'Aprano написав(ла):
>> If f is a function which normally takes (for the sake of the argument)
>> one argument, then f would call the function with no arguments (which may
>> return a curried function, or may apply default arguments, or perhaps
>> raise an exception). So how would you refer to the function itself
>> without calling it?
>
> lambda:f

Doesn't help; wouldn't the lambda be implicitly called?

Cheers,
Chris



More information about the Python-list mailing list