O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

uu

The uu module is used to encode and decode files in uuencode format, a data encoding sometimes used when transferring binary data over an ASCII-only connection.

encode(input, output [, name [, mode]])

Uuencodes a file. input is a file object opened for reading or a filename. output is a file object opened for writing or a filename. name specifies the name of the file that’s encoded in the uuencoded file. mode specifies the mode of the file. By default, name and mode are taken from the input file.

decode(input [, output [, mode [, quiet]]])

Decodes a uuencoded file. input is a file object opened for reading or a filename. output is a file object opened for writing or a filename. mode is used to set permission bits and overrides the setting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required