This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
You've already forked circuitpython
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
6d3c5e4301
circuitpython
/
tests
/
basics
/
dict_iterator.py
6 lines
83 B
Python
Raw
Normal View
History
Unescape
Escape
Added dict iterator.
2014-01-06 12:17:02 -05:00
d
=
{
1
:
2
,
3
:
4
}
tests: Fix few tests which depend on order of elements in dict. With dict being unordered of course.
2014-04-06 14:28:44 -04:00
els
=
[
]
Added dict iterator.
2014-01-06 12:17:02 -05:00
for
i
in
d
:
tests: Fix few tests which depend on order of elements in dict. With dict being unordered of course.
2014-04-06 14:28:44 -04:00
els
.
append
(
(
i
,
d
[
i
]
)
)
print
(
sorted
(
els
)
)