Python's simplicity philosophy

Dave Brueck dave at pythonapocrypha.com
Wed Nov 12 12:41:48 EST 2003


> > On Wed, Nov 12, 2003 at 08:28:29AM +0000, Robin Becker wrote:
> > > sequence.sum()
> > > sequence.reduce(operator.add[,init])
> > > sequence.filter(func) etc etc
> > >
> > > That would make these frighteningly incomprehensible ;)
> > > concepts seem less like functional programming. Personally I wouldn't
> > > like that to happen.
> >
> > I'm hoping you were being sarcastic ... but I get the feeling you aren't.
> >
> > Why, pray-tell, would you want an OO program to do:
> >
> > results = [ func(x) for x in sequence ]
> >
> > ... instead of ...
> >
> > results = sequence.map(func) ??

My apologies: my goofy mailer isn't adding the "On <date>, <person> wrote:"
lines, so it sort of confuses what Robin wrote with what Michael wrote. Sorry!

-Dave






More information about the Python-list mailing list