How would I go about "flattening" a dict with many nested dicts
within? The dicts might look like this:
{"mays" : {"eggs" : "spam"},
"jam" : {"soda" : {"love" : "dump"}},
"lamba" : 23
}
I'd like it to put "/" inbetween the dicts to make it a one
dimensional dict and look like this:
{"mays/eggs" : "spam",
"jam/soda/love" : "dump",
"lamba" : 23
}
--
http://mail.python.org/mailman/listinfo/python-list
- flattening a dict Benjamin
- Re: flattening a dict Jeff Schwab
- Re: flattening a dict Arnaud Delobelle
- Re: flattening a dict Boris Borcic
- Re: flattening a dict Terry Jones
- Re: flattening a dict Arnaud Delobelle
- Re: flattening a dict George Sakkis
- Re: flattening a dict Boris Borcic
- Re: flattening a dict Arnaud Delobelle
- Re: flattening a dict Boris Borcic
- Re: flattening a dict Duncan Booth
