<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 21/05/2010 12:05, Rohit Aggarwal wrote:
<blockquote
cite="mid:AANLkTimOQ74XjDp_qYPuEnZnLEhnDtk0BSG_aL31ipce@mail.gmail.com"
type="cite">Hello,
<div>The following program 'True' in IronPython and 'False' in
CPython.</div>
<div><br>
</div>
<div>--</div>
<div>
<div>import pickle</div>
<div><br>
</div>
<div>data = {"msg":"Hello world"}</div>
<div>print isinstance(pickle.dumps(data), unicode)</div>
</div>
<div>--</div>
<div><br>
</div>
<div>Is that the intended behaviour?</div>
<div><br>
</div>
</blockquote>
<br>
Yes. pickle.dumps returns a string and in IronPython strings are
unicode.<br>
<br>
Michael<br>
<br>
<blockquote
cite="mid:AANLkTimOQ74XjDp_qYPuEnZnLEhnDtk0BSG_aL31ipce@mail.gmail.com"
type="cite">
<div>Thanks</div>
<div>Rohit Aggarwal</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
</pre>
</body>
</html>