Python's simplicity philosophy

Andrew Dalke adalke at mindspring.com
Sat Nov 15 00:27:11 EST 2003


Me:
> 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.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list