Sorting a list of dictionaries by dictionary key

bruno at modulix onurb at xiludom.gro
Wed May 3 10:07:51 EDT 2006


Eric Deveaud wrote:
(snip)
> 
> sort can take a comparaison function. 

The problem with it is that it may slow down things a lot...

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list