This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
672d0e27a3
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
)
)
Reference in New Issue
Copy Permalink