base64.b64encode(data)

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Jun 13 19:04:40 EDT 2016


Michael Torrie wrote:
> On 06/12/2016 11:16 PM, Steven D'Aprano wrote:
> 
>>Squirt it down a wire as bytes? Almost certainly.
> 
> Sometimes yes.  But not always.

And even when the ultimate destination is a wire, a Python
programmer is more likely to be accessing the wire through
some high-level interface that accepts the payload to be
sent as text in the form of a Python str object.

-- 
Greg



More information about the Python-list mailing list