AutoVivification

class bandicoot.helper.tools.AutoVivification

Implementation of perl's autovivification feature.

Under CC-BY-SA 3.0 from nosklo on stackoverflow: http://stackoverflow.com/questions/19189274/defaultdict-of-defaultdict-nested

Methods

clear(() -> None.  Remove all items from od.)
copy(() -> a shallow copy of od)
fromkeys((S[, ...) If not specified, the value defaults to None.
get((k[,d]) -> D[k] if k in D, ...)
insert(keys, value)
items
keys
move_to_end Move an existing element to the end (or beginning if last==False).
pop((k[,d]) -> v, ...) value. If key is not found, d is returned if given, otherwise KeyError
popitem(() -> (k, v), ...) Pairs are returned in LIFO order if last is true or FIFO order if false.
setdefault((k[,d]) -> od.get(k,d), ...)
update
values