Dictionary viewer and editor

Paddy paddy3118 at googlemail.com
Mon Aug 13 22:08:49 CEST 2007


On Aug 13, 8:10 pm, Thomas Jollans <tho... at jollans.com> 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.




More information about the Python-list mailing list