Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'encode': 0.09; 'integers': 0.09; 'rfc': 0.09; 'subject: [': 0.09; 'python': 0.11; 'stored': 0.12; "(it's": 0.16; 'chunks': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integer,': 0.16; 'integer.': 0.16; 'integers.': 0.16; 'perfect.': 0.16; 'those,': 0.16; 'two.': 0.16; 'wrote:': 0.18; 'properly': 0.19; "python's": 0.19; 'saying': 0.22; '(or': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'fri,': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'right?': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'represent': 0.38; 'subject:]': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'mar': 0.68; 'day': 0.76; 'divide': 0.84; 'subject:long': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=BkdOn59zwu6qLDg4DJpd9jE3hxdL6KXsNhGEAioG+zw=; b=N7vXqfZqBpLh/iZHt9o5aGDw2oyoKFm96N5GOx4Nr17KCOEmi4dR3YNAYHhVTeuKmL 6WzK2gPd9lnBJ4BhJc2uOuSSojPO2BPQB0dTnyI26j3d+j9pZzvSD8GMSrqa8E01+Us5 wNjL+vv8Pk72yIiSmQJb3zAhb82JqI/1M17yvO+bTukf35km1e2B2lSKmif4an/0YyDz YGnShoiVLSjm9Zph03MOnzYAq2jUstu4ayuspuuesDgBGmhuxoWVuPosMQrtpV1hi97P 4dM+9BM5XAmbmFIbdP4Ma1gZPm4+WyoMVUDSa+jnfZPDDGOitrLn9BNs21oA9oMVebyN CrpQ== MIME-Version: 1.0 X-Received: by 10.52.16.211 with SMTP id i19mr6576549vdd.91.1364484063665; Thu, 28 Mar 2013 08:21:03 -0700 (PDT) In-Reply-To: <6c93d273-2289-4c49-a586-52675aea9567@p5g2000yqj.googlegroups.com> References: <5153a12d$0$29998$c3e8da3$5496439d@news.astraweb.com> <987c4bd9-0e5e-4387-9c78-1075a77d3c47@c6g2000yqh.googlegroups.com> <51543f45$0$29998$c3e8da3$5496439d@news.astraweb.com> <944f195c-cbfe-47e1-a963-05fe3d98238d@5g2000yqz.googlegroups.com> <6c93d273-2289-4c49-a586-52675aea9567@p5g2000yqj.googlegroups.com> Date: Fri, 29 Mar 2013 02:21:03 +1100 Subject: Re: flaming vs accuracy [was Re: Performance of int/long in Python 3] From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364484553 news.xs4all.nl 6947 [2001:888:2000:d::a6]:53066 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42148 On Fri, Mar 29, 2013 at 2:14 AM, jmfauth wrote: > As long as you are attempting to devide a set of characters in > chunks and try to handle them seperately, it will never work. Okay. Let's look at integers. To properly represent the Python 3 'int' type (or the Python 2 'long'), we need to be able to encode ANY integer. And of course, any attempt to divide them up into chunks will never work. So we need a single representation that will cover ANY integer, right? Perfect. We already have one of those, detailed in RFC 2795. (It's coming up to its thirteenth anniversary in a day or two. Very appropriate.) http://tools.ietf.org/html/rfc2795#section-4 Are you saying Python's integers should be stored as I-TAGs? ChrisA