text-mode tree viewer?

Torsten Bronger bronger at physik.rwth-aachen.de
Tue Jun 26 12:24:46 CEST 2007


Hallöchen!

I'm looking for a package/routine that can convert

[["Peter",
           ["Ian", 
          [["Randy",
                     ["Clara"]]]]],
  "Paul", 
 ["Mary",
           ["Arthur"]]]

into

  +---> Peter
  |       |
  |       +---> Ian
  |       |
  |       +---> Randy
  |               |
  |               +---> Clara
  |
  +---> Paul
  |
  +---> Mary
          |
          +---> Arthur

Neither the input data structure nor the output must be exactly like
here but probably you got the idea.  Thank you for any hints!

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: bronger at jabber.org
                      (See http://ime.webhop.org for ICQ, MSN, etc.)



More information about the Python-list mailing list