to better observe locales

Alexander V. Voinov avv at quasar.ipa.nw.ru
Sat Jul 29 17:58:18 EDT 2000


Hi

Guido van Rossum wrote:

> "Alexander V. Voinov" <avv at quasar.ipa.nw.ru> writes:
>
> > It seems that Python would better observe locales at almost no cost.
> >
> > 1. list.sort(). If the sorted list is just a list of strings, it's
> > trivial to pass 'strcoll' as an argument. But if the list element is a
> > tuple, I have to write my own comparison function which would use
> > locale.
>
> There are lots of good reasons why observing locales on string
> comparisons with the < operator are a bad idea.

What are these reasons? Are they presented somewhere on www.python.org?

Alexander






More information about the Python-list mailing list