This website requires JavaScript.
Explore
Help
Sign In
jebbatime
/
micropython
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
9bf757bf21
micropython
/
tests
/
basics
/
dict_copy.py
6 lines
100 B
Python
Raw
Normal View
History
Unescape
Escape
tests: Reduce large object allocations so tests can run with small heap.
2016-02-12 16:38:30 -07:00
a
=
{
i
:
2
*
i
for
i
in
range
(
100
)
}
Added dict.copy
2014-01-06 11:11:20 -07:00
b
=
a
.
copy
(
)
tests: Reduce large object allocations so tests can run with small heap.
2016-02-12 16:38:30 -07:00
for
i
in
range
(
100
)
:
Added dict.copy
2014-01-06 11:11:20 -07:00
print
(
i
,
b
[
i
]
)
print
(
len
(
b
)
)