October 2006
Intermediate to advanced
888 pages
16h 55m
English
The uu in these names means UNIX-to-UNIX. The uuencode and uudecode utilities are a time-honored way of exchanging data in text form (similar to the way base64 is used).
str = "\007\007\002\abdce"
new_string = [str].pack("u") # '(!P<"!V)D8V4`'
original = new_string.unpack("u") # ["\a\a\002\abdce"]Note that an array is returned by unpack.
Read now
Unlock full access