Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; ';-)': 0.03; 'subject:string': 0.09; 'python': 0.11; 'random': 0.14; 'thread': 0.14; 'windows': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'things.': 0.19; '>>>': 0.22; "aren't": 0.24; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; 'chase': 0.31; 'probably': 0.32; 'maybe': 0.34; "can't": 0.35; 'received:google.com': 0.35; 'really': 0.36; 'subject:?': 0.36; 'too': 0.37; 'operating': 0.37; 'represent': 0.38; 'awesome': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'even': 0.60; 'full': 0.61; 'entire': 0.61; 'hey,': 0.75; 'hanging': 0.84; 'here...': 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:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mpTt7AUl9mCKiiYryKB3lQ7aweCvl0O5zNW+pQ+lSJ4=; b=Tn5m4hZ+DN3id0+tv7kq1cQgevA2Kaz91qNHTY/t5nbFONOPsbEUZOpXBPqHtjSKBW 4Xh0qh86HiK3Q4kXZq8SOev/ewclGU/EaNCan/XgSBK33KuESCFut0P4wBKaYUR8LLhD ogSVwl84jRF99CHjCouz9ZZxC1OvI7h+4HGPvLXGA2LL2nqsha5d10w8mg2Uo9+fBrvA cg5AYnjs14LDkhS6jpvCb1xuZe3wUy4AaUoq8lAvkpAt3B4aw1XhFmPofllABPgUGgdi mPFgfJgEWcpmDGgZyAuwfdpvTN2/ADEF9jluAocczF+B5bN7UhV6nruBao8TPLCjuBK6 j/ZQ== MIME-Version: 1.0 X-Received: by 10.68.134.6 with SMTP id pg6mr17061161pbb.67.1383944657840; Fri, 08 Nov 2013 13:04:17 -0800 (PST) In-Reply-To: <20131108150443.1b8eca75@bigbox.christie.dr> References: <20131108150443.1b8eca75@bigbox.christie.dr> Date: Sat, 9 Nov 2013 08:04:17 +1100 Subject: Re: chunking a long string? 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383945116 news.xs4all.nl 15992 [2001:888:2000:d::a6]:42661 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58865 On Sat, Nov 9, 2013 at 8:04 AM, Tim Chase wrote: > On 2013-11-09 07:53, Chris Angelico wrote: >> On the flip side, Python gets really awesome at some other things. >> Your operating system probably takes an entire CD to distribute, >> maybe even a DVD, so that's either 700MB or 4.7GB, give or take. >> Look how efficiently Python can represent it: >> >> >>> sys.getsizeof(os) >> 36 > > Someone has been hanging out too much over on that thread about > compressing random data ;-) Hey, that's a bit unfair! Operating systems aren't full of random data! At least... well, I can't speak for Windows here... *dives for cover* ChrisA