File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,18 @@ MutableMultiDict
167
167
168
168
Set ``d[key] `` to *value *.
169
169
170
+ Replace all items where key is equal to *key * with single item
171
+ ``(key, value) ``.
172
+
170
173
.. method :: del d[key]
171
174
172
- Remove `` d[ key] `` from *d *.
175
+ Remove all items where key is equal to * key * from *d *.
173
176
Raises a :exc: `KeyError ` if *key * is not in the map.
174
177
178
+ .. method :: add(key, value)
179
+
180
+ Append ``(key, value) `` pair to the dictiaonary.
181
+
175
182
.. method :: clear()
176
183
177
184
Remove all items from the dictionary.
@@ -187,3 +194,9 @@ MutableMultiDict
187
194
length two). If keyword arguments are specified, the dictionary
188
195
is then extended with those key/value pairs:
189
196
``d.extend(red=1, blue=2) ``.
197
+
198
+ .. method :: setdefault(key[, default])
199
+
200
+ If *key * is in the dictionary, return its the **first ** value.
201
+ If not, insert *key * with a value of *default * and return *default *.
202
+ *default * defaults to ``None ``.
You can’t perform that action at this time.
0 commit comments