On Thu, 14 Apr 2005 13:49:22 +0200, rumours say that "Fredrik Lundh" <[EMAIL PROTECTED]> might have written:
>Will McGugan wrote: > >> Please implement this as a Python module. I would like to compress my mp3 >> collection to single >> bits. > >here's the magic algorithm (somewhat simplified): [snip algo [0]] Well, I take advantage of this "folding" idea for years now. Do you remember DoubleSpace? I was getting to the limits [1] of my 100 MiB hard disk, so I was considering upgrading my hardware. A female friend of mine, knowing a little but not a lot about MS-DOS asked the eye-opening question: "why don't you reapply double space to the compressed drive?" I was enlightened. Of course, a couple of weeks ago I had a bad sector which destroyed 800 KiB right in the middle of _Echoes_, but I had my whole Pink Floyd collection on a 5.25 floppy (zip of zip of zip of...) [0] -- btw, in your code, Fredrik: """file = open(keycode + ".out", "wb")""".replace("keycode", "filename") [1] disk space -- the final frontier -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list