Python's simplicity philosophy

Emile van Sebille emile at fenx.com
Fri Nov 14 14:13:05 EST 2003


Alex Martelli:
> ... no doubt you'd argue for
> a .sort() followed by [-1] as "more general" than max...
>
>

Well, you must admit that writing pentultimate(a) has it all over
a.sorted()[-2]   ;-)

--

Emile van Sebille
emile at fenx.com





More information about the Python-list mailing list