in need of some sorting help

Peter Otten __peter__ at web.de
Thu Mar 2 07:37:55 EST 2006


Kent Johnson wrote:

> dirs.sort(key=str.lower) # note no need for lambda

However, this will raise a TypeError for unicode directory names while the
lambda continues to work. 

Peter




More information about the Python-list mailing list