<br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 2:37 PM, Dino Viehland <span dir="ltr"><<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Min wrote:<br>
<br>
> JSON doesn't support binary data, so all binary data is b64-encoded.<br>
<br>
</div>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?<br></blockquote><div><br></div><div><br></div><div>No - the json module supports a small subset of datatypes:</div>
<div><br></div><div>- int, float, unicode, list, dict</div><div>- lists, dicts of above</div><div><br></div><div>You will never get bytes out of stdlib json on Python 3.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>