Python Forum

Full Version: looking 4 py code: run-length compression
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am looking for (will eventually code it if not found) code to do simple run-length compression.
i would modify that so a single character did not need a number so 'abcde' -> 'abcde'.  but as you can tell from the outset, this wastes codespace.

in most cases i would do bzip and put that in base64/32/16 if the transport environment was not 8-bit capable.