marshal.loads ValueError
- From: "abcd" <codecraig@xxxxxxxxx>
- Date: 31 Jan 2007 04:44:21 -0800
I have the following code which is sent over the wire as a string...
from time import time
class Foo:
def go(self):
print "Time:", time()
I get this code and store it as, "data"
data = receivePythonSource()
Then I try...
exec marshal.loads(data) in my_module.__dict__
However I get an error saying:
ValueError: invalid literal for __float__: om time import time
class Foo:
def go(self):
.....almost like when I try to marshal and exec it misses the first two
characters, "fr" ...any ideas?
.
- Follow-Ups:
- Re: marshal.loads ValueError
- From: Benjamin Niemann
- Re: marshal.loads ValueError
- Prev by Date: Re: Sorting a List of Lists
- Next by Date: Re: another newbie question: why should you use "*args" ?
- Previous by thread: Regex with ASCII and non-ASCII chars
- Next by thread: Re: marshal.loads ValueError
- Index(es):
Relevant Pages
|