Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.077 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'losing': 0.16; 'sure.': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'subject:skip:i 10': 0.31; 'though.': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'subject:new': 0.38; 'sure': 0.39; 'how': 0.40; 'dave': 0.60; '2015': 0.84; 'safe.': 0.84; 'angel': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=h44m590EXBLSxnplUip8RxU/vL5AApBfaWqtcl4L2z0=; b=TQRb9fTzS241t3akWueu6Aa2N/OmpsH7Pw9JhAlVZcSQDz59WazZDm6jNJATb2mUjL 4uIAI8E3ZLt8bhYbl673VQRWTit9QsCtqasCIxHa1tLNHLY6Cy2PM2mNRE4VFAZVlO/g rPtgF9x7xQfxeJ2n/O+1DUMUDTc8GwO352mp5foaM1T/3RCJiT1GVXM1DYqB5yoDLBQd m1ZSsW6mH545vtcaeVruUS2sy+aPNK9NXXCmn9A4oCfGtUT4VIOUgcx48vjC3YHHny4b ccYO/S7kXp30ZGgCIh/g/3LsFvjO1ke25BfYLL0qteAOlxU2qEovtjEV0uHjRZOAI6Zx +cLA== MIME-Version: 1.0 X-Received: by 10.42.13.193 with SMTP id e1mr33402877ica.59.1424186719700; Tue, 17 Feb 2015 07:25:19 -0800 (PST) In-Reply-To: <54E35BC9.10101@davea.name> References: <54E34C68.6040700@davea.name> <54E35519.7060607@davea.name> <54E35BC9.10101@davea.name> Date: Wed, 18 Feb 2015 02:25:19 +1100 Subject: Re: python implementation of a new integer encoding algorithm. From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424186722 news.xs4all.nl 2948 [2001:888:2000:d::a6]:58346 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85744 On Wed, Feb 18, 2015 at 2:18 AM, Dave Angel wrote: >> Sure. Not sure how you'd cope with an interior FFFF in the stream >> without drastically losing efficiency, though. > > > That's why it was base 65535, not 65536. Doh. Yeah. I autocorrected in my head, but yes, base 65535 is safe. ChrisA