Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python': 0.09; 'typeerror:': 0.09; 'types:': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '(the': 0.15; '13:38,': 0.16; '8-bit': 0.16; 'equivalents': 0.16; 'oct': 0.16; 'received:192.168.1.50': 0.16; 'str()': 0.16; 'wrote:': 0.17; 'unicode': 0.17; 'jan': 0.18; '>>>': 0.18; '"",': 0.22; '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; 'thanks!': 0.26; '(most': 0.27; 'url:mailman': 0.29; 'function': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'built-in': 0.35; 'compared': 0.35; 'url:org': 0.36; 'charset:us-ascii': 0.36; 'received:192': 0.39; 'received:192.168': 0.40; 'url:mail': 0.40; 'header:Message-Id:1': 0.62; 'more': 0.63 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:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=iXziqaZeQ5RUVbu7QyA5agT3g2h5aaWdCb9cNaBs3ow=; b=Qf6HJI577Nsea0Ki0+qFU2K+vFlwXbPZZRwXG3z1nkUd5JtPgk1Tbvvyp2OJmWxpeQ 7VwZ4Lzv/vGLtzV2/bBjUkNoNkDAAN6Q1Fdd30cg0gnsHMETUeAC47C+nudsLCNAcFEn RJfpOqbwUwO8EZnbfDbFRIy6gKfoh6kYshKa6IoE+3kbYZRcpcGiMIrFuUnJa2BBhPs+ GqTrWhV1P1PEMf1uzDNKjEPYbrk/44kQXC6rm5ZEJbcOcifszlhGgvY7XpZEpt3XkJqm kNGq8dCJDgCkgoECFaw99a83hDGark4uzMpx/SzwdS6n0U/aymFPINlXZupniGgEGMon TbeQ== X-Received: by 10.205.102.202 with SMTP id df10mr11156637bkc.83.1363789444960; Wed, 20 Mar 2013 07:24:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: "monty" < "python" From: Jan Oelze In-Reply-To: <5149C4E9.9090009@feete.org> Date: Wed, 20 Mar 2013 15:23:32 +0100 Content-Transfer-Encoding: 7bit References: <3CF84D67-668E-46C7-908D-A81D41021299@codein.is> <5149C4E9.9090009@feete.org> To: Ian Foote X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQmilA6OHvu5+DFwjWMVoCeY/EO7NJw/Wuy7sp66hcqbW0PH2gjXY4CmDcvVnUii0GTrSswT 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363789452 news.xs4all.nl 6945 [2001:888:2000:d::a6]:49360 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41596 Interesting. Thanks! On 20.03.2013, at 15:17, Ian Foote wrote: > On 20/03/13 13:38, Jan Oelze wrote: > >> "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." > > This isn't true in python 3: > > Python 3.2.3 (default, Oct 19 2012, 19:53:57) > [GCC 4.7.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> b'bytes' < 'unicode' > Traceback (most recent call last): > File "", line 1, in > TypeError: unorderable types: bytes() < str() > > Ian F > -- > http://mail.python.org/mailman/listinfo/python-list