[IPython-dev] IPython, Python 3.x, pyout, data

MinRK benjaminrk at gmail.com
Mon Mar 11 18:19:28 EDT 2013


On Mon, Mar 11, 2013 at 2:37 PM, Dino Viehland <dinov at microsoft.com> wrote:

> Min wrote:
>
> > JSON doesn't support binary data, so all binary data is b64-encoded.
>
> Right, but on Python 3k the base64 module accepts and returns bytes, not
> strings, so shouldn’t it be a bytes object when it’s b64 encoded on Python
> 3?
>


No - the json module supports a small subset of datatypes:

- int, float, unicode, list, dict
- lists, dicts of above

You will never get bytes out of stdlib json on Python 3.


>
>
>
>
> _______________________________________________
> 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/d98949f3/attachment.html>


More information about the IPython-dev mailing list