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
69b7b8fa12
circuitpython
/
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 18:38:30 -05:00
a
=
{
i
:
2
*
i
for
i
in
range
(
100
)
}
Added dict.copy
2014-01-06 13:11:20 -05:00
b
=
a
.
copy
(
)
tests: Reduce large object allocations so tests can run with small heap.
2016-02-12 18:38:30 -05:00
for
i
in
range
(
100
)
:
Added dict.copy
2014-01-06 13:11:20 -05:00
print
(
i
,
b
[
i
]
)
print
(
len
(
b
)
)