Thanks to visit codestin.com
Credit goes to docs.python.org

 
11.20.4 Binary Objects

This class may initialized from string data (which may include NULs). It has the following methods, supported mainly for internal use by the marshalling/unmarshalling code:

decode(string)
Accept a base64 string and decode it as the instance's new data.

encode(out)
Write the XML-RPC base 64 encoding of this binary item to the out stream object.

It also supports certain of Python's built-in operators through a _cmp__ method.

See About this document... for information on suggesting changes.