Collecting Rich Data Structures for students
Fredrik Lundh
fredrik at pythonware.com
Wed Jan 9 07:47:41 EST 2008
kirby.urner at gmail.com wrote:
> Some have offered XML repositories, which I can well
> understand, but in this case we're looking specifically for
> legal Python modules (py files), although they don't have
> to be Latin-1 (e.g. the sushi types file might not have a
> lot of romanji).
you can of course convert any XML file to legal Python code simply by
prepending
from xml.etree.ElementTree import XML
data = XML("""
and appending
""")
and then using the ET API to navigate the data, but I guess that's not
what you had in mind.
</F>
More information about the Python-list
mailing list