Pythonic way for missing dict keys

Jakub Stolarski jakub.stolarski at gmail.com
Fri Jul 20 21:57:28 CEST 2007


Version 1 and 2 do different thing than version 3. The latter doesn't
add value to dict.

As it was mentioned before, use:
1 - if you expect that there's no key in dict
2 - if you expect that there is key in dict




More information about the Python-list mailing list