reduce()--what is it good for? (was: Re: reduce() anomaly?)

Aahz aahz at pythoncraft.com
Sat Nov 8 05:33:10 CET 2003


In article <slrnbqomra.sn1.ramen at lackingtalent.com>,
Dave Benjamin  <ramen at lackingtalent.com> wrote:
>In article <dxfqb.421394$R32.13963346 at news2.tin.it>, Alex Martelli wrote:
>>
>> Nope -- apply beats it, given that in the last few years apply(f, args) is
>> best spelled f(*args) ...!-)
>
>Yeah, and speaking of which, where was the debate on explicit vs. implicit
>and avoiding Perl-style line-noise syntax-sugaring when that feature was
>snuck in? ;)

There wouldn't be any; it's a straightforward integration with the
long-standing ability to use *args and **kwargs when defining a
function.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan




More information about the Python-list mailing list