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


Groups > comp.lang.python > #41587

Re: "monty" < "python"

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jan@codein.is>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'that?': 0.05; '[0]': 0.07; '"a"': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '(the': 0.15; '8-bit': 0.16; 'email addr:hotmail.com&gt;': 0.16; 'equivalents': 0.16; 'received:192.168.1.50': 0.16; 'wrote:': 0.17; '&lt;': 0.17; 'unicode': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; '"python"': 0.29; '>>>>': 0.29; 'url:mailman': 0.29; 'function': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'thanks': 0.34; 'built-in': 0.35; 'compared': 0.35; 'false': 0.35; 'url:org': 0.36; 'charset:us- ascii': 0.36; 'url:docs': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'url:mail': 0.40; 'header:Message-Id:1': 0.62; 'letters': 0.62; 'url:reference': 0.84; 'to:addr:hotmail.com': 0.98
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:message-id:references:to:x-mailer:x-gm-message-state; bh=HF1MaTKD1OpHMjR4JatiXoShe0huEpw5hgHapiOJgXM=; b=IRVQ+0zFW8R0kdkFWZvoLhMkIxuUI2CwXMuYyxUJ9xy7zO9oKiISzvNfK4D0BMU+1Q pYB7HOCZJC96/zjnjOER8mXKYn1OD7vpqqUaH/sDJq8SN78WPe6Oq8A49pXqcMtEgv79 42UYPha0OFQ1XMX5BzJmB6/0HTnpZg34ccudqcOlV45kZYy/l/3xMAZwk3OPXfr2V+Wb BgrbuMMBE99IextFBIAAB1hPyvLo1+So8FpllQRH/txlbdZ4fLSGs5h3cCMijbXw/RF9 kvhKJ23vUcsfEZhsdouY60015RM/LaXXrf0OXo6sP3KbtTyOr8xgioGD55nweO5VjYfk RJ+Q==
X-Received by 10.205.13.193 with SMTP id pn1mr10826029bkb.114.1363786735946; Wed, 20 Mar 2013 06:38:55 -0700 (PDT)
Content-Type multipart/alternative; boundary="Apple-Mail=_1762AE25-63ED-40EB-876D-A7D495818318"
Mime-Version 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject Re: "monty" < "python"
From Jan Oelze <jan@codein.is>
In-Reply-To <d618f760-67d0-4c5f-865b-406e9a58a611@h11g2000vbf.googlegroups.com>
Date Wed, 20 Mar 2013 14:38:23 +0100
References <d618f760-67d0-4c5f-865b-406e9a58a611@h11g2000vbf.googlegroups.com>
To franzferdinand <melo.dumoulin@hotmail.com>
X-Mailer Apple Mail (2.1499)
X-Gm-Message-State ALoCoQlQf/FRQYTZvBYttrB/HouREad1UvSvMhx5XWRdyPFQzsWSm8pMWlfeOUVHZCannsLjqBbo
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3561.1363786737.2939.python-list@python.org> (permalink)
Lines 62
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363786737 news.xs4all.nl 6840 [2001:888:2000:d::a6]:50970
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41587

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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."

[0] http://docs.python.org/2/reference/expressions.html#not-in

On 20.03.2013, at 14:33, franzferdinand <melo.dumoulin@hotmail.com> wrote:

>>>> "Monty" < "Python"
> True
>>>> "Z" < "a"
> True
>>>> "Monty" < "Montague"
> 
> False
> What's the rule about that? Is it the number of letters or what?
> thanks
> -- 
> http://mail.python.org/mailman/listinfo/python-list

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