[Python-Dev] defaultdict proposal round three

Raymond Hettinger python at rcn.com
Mon Feb 20 22:43:20 CET 2006


[Crutcher Dunnavant ]
>> There are many times that I want d[key] to give me a value even when
>> it isn't defined, but that doesn't always mean I want to _save_ that
>> value in the dict. 

How does that differ from the existing dict.get method?


Raymond


More information about the Python-Dev mailing list