Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'binary': 0.07; 'bytes,': 0.09; 'type,': 0.09; 'cc:addr:python-list': 0.11; '65536': 0.16; 'byte,': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'fit': 0.20; 'cc:addr:python.org': 0.22; 'integer': 0.24; 'typical': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'michael': 0.29; 'chris': 0.29; 'subject:that': 0.31; 'quite': 0.32; 'fri,': 0.33; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'charset:us-ascii': 0.36; 'two': 0.37; 'message-id:@gmail.com': 0.38; 'nov': 0.38; 'pm,': 0.38; 'even': 0.60; 'header:Message-Id:1': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; '2013,': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=ShdVw6ZCU6wpb2zLJ0uWQcEl7Gj8+oeMRuWFUXH/m7M=; b=pHDC424QJWUEB+wsAXCOJLIOl/AorzEPXVg30K8vprAR+L6URt1rdZfr3JFFuG37BY qoQN2WiTRgw3UzsM6TQtPdUQNiRG+JChHdAcHxrigWX2u0wO4ixqxONgG18/Yr0brzFq 3viPyc36IicKuzXUoByrNIIvfeCH3xww+sJaAcT7UlriQD+DyvXiz2wyL8VgkO1+mQXC VE/zvAHZR9HHE+0pAKvXl92asZRBGNRaZNmbfreR3sc5C9iBbpXBI+kv1O8Cdq0J07M+ C6O50uxIPOni50qIQT+GVFbQMQaslVPSnonqg+0a/sQnOog8Zuw+YEHC6D0yD58ctAWB d0MQ== X-Received: by 10.49.58.8 with SMTP id m8mr18428256qeq.71.1383883524576; Thu, 07 Nov 2013 20:05:24 -0800 (PST) References: <205bfa4f-29de-43de-be5a-72a12d77d0c9@googlegroups.com> <9d998707-a6e9-4911-a585-c2310e4a2b31@googlegroups.com> <9b62770c-7ca1-4a4d-81a5-bf7251bac957@googlegroups.com> <13c04f06-f1f2-4f67-b975-3cff28714641@googlegroups.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (10B329) From: "R. Michael Weylandt " Subject: Re: Algorithm that makes maximum compression of completly diffused data. Date: Thu, 7 Nov 2013 23:05:21 -0500 To: Chris Angelico 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383883528 news.xs4all.nl 15889 [2001:888:2000:d::a6]:35189 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58747 On Nov 7, 2013, at 22:24, Chris Angelico wrote: > On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt > wrote: >> Chris's point is more subtle: the typical computer will store the number 6= 5536 in a single byte, but it will also store 4 and 8 in one byte.=20 >=20 > Well, 65536 won't fit in a single byte, nor even in two (only just). A > typical binary representation of 65536 would take 3 bytes, or 4 for a > common integer type: 0x00 0x01 0x00 0x00 (big-endian).=20 Quite right -- meant C's int type, (machine word) not char. My mistake! Michael=