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

MinRK benjaminrk@gmail....
Mon Mar 11 17:19:28 CDT 2013


On Mon, Mar 11, 2013 at 2:37 PM, Dino Viehland <dinov@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130311/d98949f3/attachment.html 


More information about the IPython-dev mailing list