Re: marshall type but builds stringobj??

Guido.van.Rossum@cwi.nl
Fri, 15 Jan 1993 22:59:46 +0100

Lance Ellinghouse:

>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 has been asked so many times now that I think I'll try to do
something about it...

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>