Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
marshal.loads ValueError
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="abcd, post: 2055641"] 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? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
marshal.loads ValueError
Top