Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'that?': 0.05; 'ascii': 0.07; 'newline': 0.07; '"a"': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'encoding': 0.15; 'third,': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'cheers,': 0.23; '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; 'appear': 0.26; 'values': 0.26; 'message- id:@mail.gmail.com': 0.27; '"python"': 0.29; '>>>>': 0.29; 'second,': 0.29; 'url:mailman': 0.29; 'ends': 0.30; '(and': 0.32; 'url:python': 0.32; 'url:listinfo': 0.32; 'values.': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'false': 0.35; 'pm,': 0.35; "won't": 0.35; 'there': 0.35; 'michael': 0.36; 'but': 0.36; 'url:org': 0.36; 'compare': 0.36; 'some': 0.38; 'url:mail': 0.40; 'lower': 0.61; 'first': 0.61; 'letters': 0.62; '20,': 0.65; 'upper': 0.75; '2013': 0.84; 'them)': 0.84; 'same,': 0.91; 'to:addr:hotmail.com': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=62Q4C5Cl4+6iSF0lqHxm+2Vltthv2W/3gXzUthtx9qc=; b=uDVavhFbVgkMohNIunjwlBSS8mfMw3mUIOiKyRbZecUVnKMbIV2sbWLqU4S7E7JPz8 l5wzvAN7e9f/2JLTnRs31qArybzsKG41cxyrmi7P4VgG/Mq2eAS0x0zcxF93cOQnd17J kSLG3W1vJrEyXcA+CP+Svu44kmPSYEbVRGv+DDMQIPP9YexOywjO1RtX1833alfSn21e NKAQfCSc6HHexNWMth5c+3c92n/xkGIv25Kef/rjdF2ZeeTtXn2BG0o+XH3QXaoc1FVT cnlR2XTRvfXNsI/noQA03WS9qqzCN1b3suFKdQKDScM51gfddXnq51OhntSukQC2ic0F nehA== X-Received: by 10.152.48.45 with SMTP id i13mr5457666lan.11.1363786872369; Wed, 20 Mar 2013 06:41:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: "R. Michael Weylandt" Date: Wed, 20 Mar 2013 13:40:52 +0000 Subject: Re: "monty" < "python" To: franzferdinand Content-Type: text/plain; charset=ISO-8859-1 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363786874 news.xs4all.nl 6950 [2001:888:2000:d::a6]:52824 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41588 It's lexigraphic (order by first letter, but if those are the same, compare the second, but if those are same compare the third, ... if one ends while the other continues, it's considered 'lower') on the character's ASCII (binary encoding values): http://www.asciitable.com/ Note that all the upper case values appear before the lower case values. (And there are some other 'characters' like newline before that but you won't see them) Cheers, Michael On Wed, Mar 20, 2013 at 1:33 PM, franzferdinand 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