summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_replace.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-06 21:00:58 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-06 21:31:42 +0300
commit5fedd0c3b708d2874f93897ff5de2d533079c1fc (patch)
tree8aa5a3cd900ea63431e7cd626268513885adacf3 /tests/basics/string_replace.py
parentea85a121f2b4bb806fbb59cd5da3f94cae8fb57c (diff)
downloadmicropython-5fedd0c3b708d2874f93897ff5de2d533079c1fc.tar.gz
micropython-5fedd0c3b708d2874f93897ff5de2d533079c1fc.zip
py: Fix dict.copy() and low-level map/set allocation.
Two things: 1) set flags in copy properly; make mp_map_init() not be too smart and do something with requested alloc size. Policy of using prime numbers for alloc size is high-level policy which should be applied at corresponding high levels. Low-level functions should just do what they're asked to, because they don't have enough context to be smarter than that. For example, munging with alloc size of course breaks dict copying (as changing sizes requires rehashing).
Diffstat (limited to 'tests/basics/string_replace.py')
0 files changed, 0 insertions, 0 deletions