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