is there a safe marshaler?

Aahz aahz at pythoncraft.com
Fri Feb 11 13:23:51 EST 2005


In article <mailman.2405.1108144870.22381.python-list at python.org>,
Skip Montanaro  <skip at pobox.com> wrote:
>
>    Carl> but can't effbot's fast cElementree be used for PYROs XML_PICKLE
>    Carl> and would it be safe and fast enough?
>
>It's not clear to me that if marshal is unsafe how XML could be safe.  In
>this context they are both just serializations of basic Python data
>structures.

The difference is that parsing XML -- even badly malformed -- won't
crash Python.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"The joy of coding Python should be in seeing short, concise, readable
classes that express a lot of action in a small amount of clear code -- 
not in reams of trivial code that bores the reader to death."  --GvR



More information about the Python-list mailing list