[Python-Dev] defaultdict proposal round three (original) (raw)
Raymond Hettinger python at rcn.com
Mon Feb 20 22:43:20 CET 2006
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]