Jim Jewett wrote: > Part of the problem with setdefault is that calculating the default > can be expensive. There's already a superior replacement for setdefault, i.e. use a defaultdict. -- Greg