Matthew Barnett added the comment: mappeddict? Re defaultdict, you could write a dict that does all of these things, called superdict! :-) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18986> _______________________________________