Is there a standard name for this tree structure?

egbert egbertum at xs4all.nl
Tue Apr 6 19:16:05 CEST 2010


On Sun, Apr 04, 2010 at 12:10:02PM +0000, Steven D'Aprano wrote:
 
> I can implement this tree using a flat dict:
> 
> root = object()
> data = {root: ['Mammal', 'Reptile'], 

What is the advantage, or thougth behind, using an instance
of object as the root of your flat tree ?
egbert

-- 
Egbert Bouwman - Keizersgracht 197 II - 1016 DS  Amsterdam - 020 6257991
========================================================================



More information about the Python-list mailing list