Recommendations on Pythonic tree data structure design techniques

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Apr 12 22:49:55 CEST 2009


En Thu, 09 Apr 2009 13:18:27 -0300, <python at bdurham.com> escribió:

> Any recommendations on Python based tree data structures that I
> can study? I'm working on an application that will model a basic
> outline structure (simple tree) and am looking for ideas on
> Pythonic implementation techniques.

I'd use ElementTree. An Element is a generic container for hierarchical  
data - doesn't have to be XML.

See http://effbot.org/zone/element-index.htm and  
http://docs.python.org/library/xml.etree.elementtree.html

-- 
Gabriel Genellina




More information about the Python-list mailing list