On Aug 13, 8:10 pm, Thomas Jollans <[EMAIL PROTECTED]> wrote: > On Monday 13 August 2007, Ariel Balter wrote: > > >http://mail.python.org/pipermail/python-list/2001-August/100288.html > > > Did you ever finish writing this? > > YAML (without flow style) could qualify as "tree format". example: > > yaml.dump ( {"alpha": 1, "beta": 2, "otherstuff": {"bug": None, "cool": > True, "foo": ["bar", 2e64, {13: 'many eyes', 14: 'make all', 15: 'bugs > shallow'}]}}, default_flow_style=False ) > > ... is ... > > alpha: 1 > beta: 2 > otherstuff: > bug: null > cool: true > foo: > - bar > - !!float '2e+64' > - 13: many eyes > 14: make all > 15: bugs shallow
I thought he wanted something graphical, but if text will do there is the PrettyPrint module... - Paddy. -- http://mail.python.org/mailman/listinfo/python-list