Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
27d4ca76
Commit
27d4ca76
authored
Jan 07, 2014
by
John R. Lenton
Browse files
forgot to add test for dict.update
parent
88f3043e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/tests/dict_update.py
0 → 100644
View file @
27d4ca76
d
=
{
1
:
2
,
3
:
4
}
print
(
d
)
d
.
update
([
"ab"
])
print
(
d
[
1
])
print
(
d
[
3
])
print
(
d
[
"a"
])
print
(
len
(
d
))
d
.
update
([(
1
,
4
)])
print
(
d
[
1
])
print
(
len
(
d
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment