[Python-Dev] defaultdict proposal round three

Alex Martelli aleaxit at gmail.com
Tue Feb 21 16:52:22 CET 2006

On Feb 21, 2006, at 1:51 AM, Greg Ewing wrote:
> Just one more thing -- have you made a final decision
> about the name yet? I'd still prefer something like
> 'autodict', because to me 'defaultdict' suggests

autodict is shorter and sharper and I prefer it, too: +1

> etc.) it seems more accurate to think of the value
> produced by the factory as an 'initial value' rather
> than a 'default value', and I'd prefer to see it

If we call the type autodict, then having the factory attribute named  
autofactory seems to fit. This leaves it open to the reader's  
imagination to choose whether to think of the value as "initial" or  
"default" -- it's the *auto* (automatic) value.


More information about the Python-Dev mailing list