Speed *triples* by changing 'apply(f, args)' to 'f(*args)'
Roman Suzi
rnd at onego.ru
Thu Mar 6 14:25:48 EST 2003
On Wed, 5 Mar 2003, Irmen de Jong wrote:
>Roman Suzi wrote:
>>>>>def tomorrow(fff): print fff()
>> ...
>>>>>tomorrow(:len('123'))
>> 3
>
>What's that? Didn't you forget a "lambda" before the colon?
>I get a SyntaxError as written.
I was joking. Laugh. It was intended to demonstrate implicit lambda is not
that outlandish. (PEP 312)
>Irmen
>
>
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by Linux RedHat 7.3
More information about the Python-list
mailing list