Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41590

Re: "monty" < "python"

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: "monty" < "python"
Date 2013-03-20 09:58 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-9EAA73.09583420032013@70-1-84-166.pools.spcsdns.net> (permalink)
References <d618f760-67d0-4c5f-865b-406e9a58a611@h11g2000vbf.googlegroups.com> <mailman.3561.1363786737.2939.python-list@python.org>

Show all headers | View raw


In article <mailman.3561.1363786737.2939.python-list@python.org>,
 Jan Oelze <jan@codein.is> wrote:

> From the docs[0]:
> 
> "Strings are compared lexicographically using the numeric equivalents (the 
> result of the built-in function ord()) of their characters. Unicode and 8-bit 
> strings are fully interoperable in this behavior."

Note, however, that sorting order is a really complicated subject.  
Different languages have all sorts of rules for how to alphabetize 
entries in a directory or dictionary.  Does N sort the same as N?  Does 
E sort the same as E?  What about C and C?  Are these pairs all the same 
letter, one of which is decorated with some mark, or are they different 
letters?

If you're worried about these sorts of things, you need to be looking at 
the locale module.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 06:33 -0700
  Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 14:38 +0100
    Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-20 09:58 -0400
      Re: "monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 07:03 -0700
        Re: "monty" < "python" Terry Reedy <tjreedy@udel.edu> - 2013-03-21 04:08 -0400
          Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-21 08:45 -0400
            Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-21 23:55 +1100
            Re: "monty" < "python" Wayne Werner <wayne@waynewerner.com> - 2013-03-21 07:56 -0500
            Re: "monty" < "python" Dave Angel <davea@davea.name> - 2013-03-21 09:02 -0400
  Re: "monty" < "python" "R. Michael Weylandt" <michael.weylandt@gmail.com> - 2013-03-20 13:40 +0000
  Re: "monty" < "python" Ian Foote <ian@feete.org> - 2013-03-20 14:17 +0000
  Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 15:23 +0100
  Re: "monty" < "python" Grant Edwards <invalid@invalid.invalid> - 2013-03-20 16:04 +0000
    Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-20 12:40 -0700
      Re: "monty" < "python" Tim Delaney <tim.delaney@aptare.com> - 2013-03-21 08:02 +1100
        Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:24 -0700
          Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:17 +0000
            Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-24 06:31 -0700
              Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-25 00:44 +1100
              Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 14:08 +0000
      Re: "monty" < "python" Michael Torrie <torriem@gmail.com> - 2013-03-20 19:41 -0600
      Re: "monty" < "python" Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 02:52 +0000
      Re: "monty" < "python" rusi <rustompmody@gmail.com> - 2013-03-20 20:12 -0700
        Vowels [was Re: "monty" < "python"] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 04:28 +0000
          Re: Vowels [was Re: "monty" < "python"] Larry Hudson <orgnut@yahoo.com> - 2013-03-20 23:26 -0700
            Re: Vowels [was Re: "monty" < "python"] David H Wild <dhwild@talktalk.net> - 2013-03-21 09:36 +0000
              Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-21 21:09 +1100
                Re: Vowels [was Re: "monty" < "python"] Peter Pearson <ppearson@nowhere.invalid> - 2013-03-21 21:52 +0000
                Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 08:59 +1100
              Re: Vowels [was Re: "monty" < "python"] istjanichtzufassen@gmail.com - 2013-03-21 06:26 -0700
                Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 00:38 +1100
          Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-21 17:31 +0000
            Re: Vowels [was Re: "monty" < "python"] Terry Reedy <tjreedy@udel.edu> - 2013-03-21 19:05 -0400
              Re: Vowels [was Re: "monty" < "python"] Roy Smith <roy@panix.com> - 2013-03-21 20:09 -0400
              Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-22 14:14 +0000
            Re: Vowels [was Re: "monty" < "python"] Stefan Behnel <stefan_ml@behnel.de> - 2013-03-24 15:25 +0100
              Re: Vowels [was Re: "monty" < "python"] rusi <rustompmody@gmail.com> - 2013-03-24 08:04 -0700
            Re: Vowels [was Re: "monty" < "python"] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 16:12 +0000
        Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:23 -0700
          Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:45 +1100
          Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:56 +1100
          Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:06 +0000

csiph-web