chunking a long string?

Chris Angelico rosuav at
Fri Nov 8 22:04:17 CET 2013

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


More information about the Python-list mailing list