Perl and Python, a practical side-by-side example.

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sun Mar 4 23:48:26 CET 2007


Peter Otten a écrit :
> Bruno Desthuilliers wrote:
> 
> 
>>         print >> output, sorted(decorated_lines, reverse=True)[0][1]
> 
> 
> Or just
>            print >> output, max(decorated_lines)[1]

Good point. More explicit, and a bit faster too. Thanks Peter.



More information about the Python-list mailing list