Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58865

Re: chunking a long string?

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 <rosuav@gmail.com>
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 <mailman.2232.1383932895.18130.python-list@python.org> <c1bb3377-4425-4707-9ae7-aa7251cebc75@googlegroups.com> <CAPTjJmr5T2-c44jwv2FWV795zSXsvxrBOZ3PoeCC_ZykHCQF7w@mail.gmail.com> <20131108150443.1b8eca75@bigbox.christie.dr>
Date Sat, 9 Nov 2013 08:04:17 +1100
Subject Re: chunking a long string?
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2259.1383945116.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Nov 9, 2013 at 8:04 AM, Tim Chase <python.list@tim.thechases.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

chunking a long string? Roy Smith <roy@panix.com> - 2013-11-08 12:48 -0500
  Re: chunking a long string? wxjmfauth@gmail.com - 2013-11-08 12:43 -0800
    Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-09 07:53 +1100
    Re: chunking a long string? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-08 20:57 +0000
    Re: chunking a long string? Tim Chase <python.list@tim.thechases.com> - 2013-11-08 15:04 -0600
    Re: chunking a long string? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-08 21:06 +0000
    Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-09 08:04 +1100
    Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-09 08:17 +1100
    Re: chunking a long string? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-09 00:46 +0000
      Re: chunking a long string? wxjmfauth@gmail.com - 2013-11-09 00:14 -0800
        Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-09 19:26 +1100
          Re: chunking a long string? Roy Smith <roy@panix.com> - 2013-11-09 09:37 -0500
            Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-10 02:02 +1100
              Re: chunking a long string? Roy Smith <roy@panix.com> - 2013-11-09 10:21 -0500
                Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-10 02:30 +1100
                Re: chunking a long string? Roy Smith <roy@panix.com> - 2013-11-09 10:35 -0500
            Re: chunking a long string? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-09 15:37 +0000
              Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-10 09:14 +1100
                Re: chunking a long string? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-10 06:39 +0000
                Re: chunking a long string? Chris Angelico <rosuav@gmail.com> - 2013-11-10 19:46 +1100
        Re: chunking a long string? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-09 10:13 +0000
  Re: chunking a long string? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-09 00:54 +0000

csiph-web