Re: [Python-Dev] Why does base64 return bytes?

2016年6月15日 08:10:45 -0700

On Wed, Jun 15, 2016 at 12:53:15PM +0000, Daniel Holth wrote:
> In that case could we just add a base64_text() method somewhere? Who would
> like to measure whether it would be a win?
Just call .decode('ascii') on the output of base64.b64encode. Not every 
one-liner needs to be a standard function.
-- 
Steve
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to