is there a safe marshaler?

Fredrik Lundh fredrik at pythonware.com
Fri Feb 11 14:00:40 EST 2005


Aahz wrote:

>>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.

optimist.

>>> import os
>>> os.path.getsize("BL.xml")
1302
>>> from xml.dom import minidom
>>> x = minidom.parse("BL.xml")

(have patience.  have lots of patience.)

</F>






More information about the Python-list mailing list