[IPython-dev] IPython, Python 3.x, pyout, data
MinRK
benjaminrk at gmail.com
Mon Mar 11 14:59:31 EDT 2013
On Mon, Mar 11, 2013 at 11:55 AM, Dino Viehland <dinov at microsoft.com> wrote:
> Quick question on the data in pyout on Python 3.x. It appears that when
> I get image/png data coming from matplotlib that the value is a string. I
> can successfully encode the data with utf8 and then apply the base 64
> decoding to it. ****
>
> ** **
>
> I’m just surprised this isn’t already in bytes on Python 3.x, is there a
> reason why it’s a Unicode string?
>
JSON doesn't support binary data, so all binary data is b64-encoded.
> ****
>
> ** **
>
> ** **
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130311/8d1ac3af/attachment.html>
More information about the IPython-dev
mailing list