tests/dict.py | raw changeset files shortlog |
1.1 --- a/tests/dict.py Sun Jan 15 18:10:54 2017 +0100 1.2 +++ b/tests/dict.py Sun Jan 15 18:44:06 2017 +0100 1.3 @@ -16,6 +16,8 @@ 1.4 print d[30] # should fail with an exception 1.5 except KeyError, exc: 1.6 print "d[30]: key not found", exc.key 1.7 +print d.get(30) # None 1.8 +print d.get(30, "c") # c 1.9 1.10 l = f(d) 1.11 print "# l: ",