[IronPython] Difference in pickle between IronPython 2.6 and CPython 2.6

Rohit Aggarwal rohit.aggarwal at gmail.com
Fri May 21 13:16:33 CEST 2010


Thanks Michael!

On Fri, May 21, 2010 at 12:11 PM, Michael Foord
<fuzzyman at voidspace.org.uk>wrote:

>  On 21/05/2010 12:05, Rohit Aggarwal wrote:
>
> Hello,
> The following program 'True' in IronPython and 'False' in CPython.
>
>  --
>  import pickle
>
>  data = {"msg":"Hello world"}
> print isinstance(pickle.dumps(data), unicode)
>  --
>
>  Is that the intended behaviour?
>
>
> Yes. pickle.dumps returns a string and in IronPython strings are unicode.
>
> Michael
>
>  Thanks
> Rohit Aggarwal
>
>
> _______________________________________________
> Users mailing listUsers at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
> -- http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100521/72657d3e/attachment.html>


More information about the Ironpython-users mailing list