Preferred Python idiom for handling non-existing dictionary keys and why?

Terry Reedy tjreedy at udel.edu
Fri Oct 10 20:16:07 EDT 2003


"Terry Reedy" <tjreedy at udel.edu> wrote in message
news:jOWcnYmbcsYclhqiXTWJig at comcast.com...
> Read Library Reference 2.2.7 Mapping Types to learn current dict
> methods.

Seeing the other responses, I see I need to do the same and read about
setdefault() ;-)






More information about the Python-list mailing list