diff options
author | bvernoux <bvernoux@gmail.com> | 2014-06-03 19:26:34 +0200 |
---|---|---|
committer | bvernoux <bvernoux@gmail.com> | 2014-06-03 19:26:34 +0200 |
commit | 82560fce75ab0307182c943d564202e55fca6c09 (patch) | |
tree | d20162c8647ddb2451fdb76024761821b43149e8 /tests/basics/dict_update.py | |
parent | 0a1dbfe02f4a693c202b97aafcf0b5d0ba050812 (diff) | |
parent | b294a7e3c9b84aad6c331128a51e0d69e7845141 (diff) | |
download | micropython-82560fce75ab0307182c943d564202e55fca6c09.tar.gz micropython-82560fce75ab0307182c943d564202e55fca6c09.zip |
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'tests/basics/dict_update.py')
-rw-r--r-- | tests/basics/dict_update.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/dict_update.py b/tests/basics/dict_update.py index 46d1f41b5f..ab1a63304a 100644 --- a/tests/basics/dict_update.py +++ b/tests/basics/dict_update.py @@ -8,3 +8,9 @@ print(len(d)) d.update([(1,4)]) print(d[1]) print(len(d)) + +# using keywords +d.update(a=5) +print(d['a']) +d.update([(1,5)], b=6) +print(d[1], d['b']) |