diff options
| author | John R. Lenton | 2014-01-06 20:25:51 +0000 |
|---|---|---|
| committer | John R. Lenton | 2014-01-07 22:51:08 +0000 |
| commit | be8fe5be2eb89cd8db741b16dcb50bf5966c33ae (patch) | |
| tree | a738b04f2c1bc59e44764d9564c24398cd61391b /py/map.c | |
| parent | f77dce8a5dda13c759faeabb892d5f439dc05fd5 (diff) | |
Added dict.setdefault
Diffstat (limited to 'py/map.c')
| -rw-r--r-- | py/map.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -112,6 +112,7 @@ mp_map_elem_t* mp_map_lookup_helper(mp_map_t *map, mp_obj_t index, bool add_if_n retval->key = elem->key; retval->value = elem->value; elem->key = NULL; + elem->value = NULL; return retval; } return elem; |
