Newbie question...

Glyph Lefkowitz glyph at no.spam
Thu Sep 28 00:05:26 EDT 2000


Jon Ribbens <jon+python-list at unequivocal.co.uk> writes:

> Maurizio Turatti <mturatti at yahoo.com> wrote:
> > I don't know if this fit your question:
> 
> I thought there was only supposed to be one way to do it ;-)
> 

There is one, and only one, obious way to do that --

  reduce(operator.add,[1,2,3])

but-it-may-only-be-obvious-if-you-are-dutch-ly y'rs,

-- 
Glyph Lefkowitz
Professional -- Software Engineer,  Origin Systems
Amateur      -- Computer Scientist, Twisted Matrix Enterprises
(My opinions are my own and do not reflect in any way on the policies
or practices of my employer, etcetera etcetera.)



More information about the Python-list mailing list