Using the Python Interpreter as a Reference

Ian Kelly ian.g.kelly at gmail.com
Mon Nov 28 23:56:19 EST 2011


On Mon, Nov 28, 2011 at 7:42 PM, Travis Parks <jehugaleahsa at gmail.com> wrote:
> I find that interesting. I also find it interesting that the common
> functional methods (all, any, map, filter) are basically built into
> Python core language. That is unusual for most imperative programming
> languages early-on.

all and any are actually quite recent additions.  Guido added them to
placate users of "reduce(lambda x, y: x and y, foo)" back when the
plan was to remove reduce in Python 3.

Cheers,
Ian



More information about the Python-list mailing list