marshal.loads ValueError

abcd codecraig at gmail.com
Wed Jan 31 08:20:42 EST 2007


On Jan 31, 8:02 am, Benjamin Niemann <p... at odahoda.de> wrote:
> marshal is used to (de)serialize python objects from/to strings.
> marshal.loads() tries to deserialize an encoded string back into a python
> object - which does not make sense here.
> What you probably want is:
>
> exec data in my_module.__dict__

thanks that took care of it.




More information about the Python-list mailing list