sorted() erraticly fails to sort string numbers
M8R-r1c6h51 at mailinator.com
Tue Apr 28 16:38:10 CEST 2009
On 2009-04-28 16:18:43 +0200, John Posner <jjposner at snet.net> said:
> Don't be disheartened! Many people -- myself included, absolutely! --
> occasionally let a blind spot show in their messages to this list.
Thanks for the encouragement :)
> container[:] = sorted(container, key=getkey)
> ... is equivalent to:
> (unless I'm showing *my* blind spot here)
I don't think etree element objects support the .sort method.
At least in lxml they don't
More information about the Python-list