This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
d4ce57e4e3
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 23:38:30 +00:00
a
=
{
i
:
2
*
i
for
i
in
range
(
100
)
}
Added dict.copy
2014-01-06 18:11:20 +00:00
b
=
a
.
copy
(
)
tests: Reduce large object allocations so tests can run with small heap.
2016-02-12 23:38:30 +00:00
for
i
in
range
(
100
)
:
Added dict.copy
2014-01-06 18:11:20 +00:00
print
(
i
,
b
[
i
]
)
print
(
len
(
b
)
)