len() should always return something

Hendrik van Rooyen hendrik at microcorp.co.za
Sat Jul 25 05:01:46 EDT 2009


On Friday 24 July 2009 21:04:55 Roy Smith wrote:


> Compressing strings to a single bit is easy.  It's the uncompressing that's
> tricky.

Not really - all you have to do is to apply the EXACT same sequence
of operations that compressed it, in reverse.

The unfortunate part is that this information is in almost all cases
larger than the original, uncompressed string, so that it kind of defeats
the object of compression.

So yes - tricky!

:-)

- Hendrik





More information about the Python-list mailing list