Python's simplicity philosophy

Andrew Dalke adalke at
Sat Nov 15 06:27:11 CET 2003

> def imax(seq, f = lambda x: x):

The name, btw, is wrong.  It should be 'obj_with_max_value'
'maxobj' or somesuch, since 'imax' should return the maximum
value of the iterator, which happens to be identical to what
max does.

The idea is the same.

                    dalke at

More information about the Python-list mailing list