learn-more-python-the-hard-way-solutions icon indicating copy to clipboard operation
learn-more-python-the-hard-way-solutions copied to clipboard

Dictionary.get("key", "default") never returns default

Open blgo opened this issue 8 years ago • 0 comments

This behaves correctly if it si replaced by return node and node.value[1] or default

https://github.com/zedshaw/learn-more-python-the-hard-way-solutions/blob/dc3adab80bf9020cc714dd2dd763964b5a7d1865/ex17_dictionary/dictionary.py#L43

blgo avatar Sep 21 '17 15:09 blgo