>>Has anyone put together a 'marshall' type module that instead
>>of dumping everything to a file, it would create a stringobj that
>>contained the information???
>>I would like to be able to create a stringobj that contains the same
>>information as when you do a marshal.dump()... This will allow me
>>to send PYTHON objects across networks! :)
> You can already send Python objects as strings across networks using
> repr() or `` and eval(), but you're right that marshal would be more
> efficient. (Though not more general -- the same objects for which
> eval(`x`) fails also cannot be load()ed by marshal.)
This may be true, but You cannot send the following easily using repr()
or `` or eval():
(0,'This is a test',func)
Where func is a code object that should be sent and executed on the
remote machine (where 'func' did NOT exist on the remote machine).
> This has been asked so many times now that I think I'll try to do
> something about it...