chunking a long string?

Tim Chase python.list at tim.thechases.com
Fri Nov 8 16:04:43 EST 2013


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 ;-)

-tkc






More information about the Python-list mailing list