Collecting Rich Data Structures for students
fredrik at pythonware.com
Wed Jan 9 13:47:41 CET 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
from xml.etree.ElementTree import XML
data = XML("""
and then using the ET API to navigate the data, but I guess that's not
what you had in mind.
More information about the Python-list