New Features in Python 1.6

Philip 'Yes, that's my address' Newton nospam.newton at gmx.li
Tue Apr 4 15:37:36 EDT 2000


On Tue, 04 Apr 2000 17:40:54 GMT, "Fredrik Lundh" <effbot at telia.com>
wrote:

>why not just use two different compression algorithms repeatedly,
>until you've squeezed the file down to a suitable size?  it takes a
>little work, but you can design them so that one of them can always
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>strip away at least one bit from the input stream.
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Yes? I challenge you to provide any algorithm that will strip away one
bit from the four sequences 11, 10, 01, and 00, while still being able
to restore the previous state. (Unless you were talking about lossy
compression, in which case you might as well say "my compression
algorithm just drops off the leftmost bit" or similar, which will
*always* compress any non-empty file.)

Cheers,
Philip
-- 
Philip Newton <nospam.newton at gmx.li>



More information about the Python-list mailing list