marshal and unmarshal
Fredrik Lundh
fredrik at pythonware.com
Sun Aug 27 06:08:37 EDT 2006
leo wrote:
> 'c\x00\x00\x00\x00\x01\x00...
> ----------------------------------------------------
> <code object ? at 0x81690c0, file "<strng>", line 2>
>
> Question:
> 1. why unmarshal data is
> <code object ? at 0x81690c0, file "<strng>", line 2>
because that's what compile returns, of course. marshal.dumps takes
a Python object and turns it into a string; marshal.loads takes such
a string and turns it into a Python object.
> 2. how safe is the compiled and serialize data.
define "safe".
</F>
More information about the Python-list
mailing list