class ImmutableOrderedMultiDict(ImmutableMultiDictMixin, OrderedMultiDict): (source)
An immutable :class:`OrderedMultiDict`. .. versionadded:: 0.6
Method | __copy__ |
Undocumented |
Method | copy |
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class like for any other python immutable type (eg: :class:`tuple`). |
Method | _iter |
Undocumented |
Inherited from ImmutableMultiDictMixin
:
Method | __reduce |
Undocumented |
Method | add |
Undocumented |
Method | popitemlist |
Undocumented |
Method | poplist |
Undocumented |
Method | setlist |
Undocumented |
Method | setlistdefault |
Undocumented |
Inherited from ImmutableDictMixin
(via ImmutableMultiDictMixin
):
Class Method | fromkeys |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | clear |
Undocumented |
Method | pop |
Undocumented |
Method | popitem |
Undocumented |
Method | setdefault |
Undocumented |
Method | update |
Undocumented |
Instance Variable | _hash |
Undocumented |
Inherited from OrderedMultiDict
(via ImmutableMultiDictMixin
, ImmutableDictMixin
):
Method | __eq__ |
Undocumented |
Method | __getitem__ |
Return the first data value for this key; raises KeyError if not found. |
Method | __getstate__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __setstate__ |
Undocumented |
Method | getlist |
Return the list of items for a given key. If that key is not in the `MultiDict`, the return value will be an empty list. Just like `get`, `getlist` accepts a `type` parameter. All items will be converted with the callable defined there. |
Method | items |
Return an iterator of ``(key, value)`` pairs. |
Method | keys |
Undocumented |
Method | lists |
Return a iterator of ``(key, values)`` pairs, where values is the list of all values associated with the key. |
Method | listvalues |
Return an iterator of all values associated with a key. Zipping :meth:`keys` and this is the same as calling :meth:`lists`: |
Method | values |
Returns an iterator of the first value on every key's value list. |
Instance Variable | _first |
Undocumented |
Instance Variable | _last |
Undocumented |
Inherited from MultiDict
(via ImmutableMultiDictMixin
, ImmutableDictMixin
, OrderedMultiDict
):
Method | __deepcopy__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | deepcopy |
Return a deep copy of this object. |
Method | to |
Return the contents as regular dict. If `flat` is `True` the returned dict will only have the first item present, if `flat` is `False` all values will be returned as lists. |
Inherited from TypeConversionDict
(via ImmutableMultiDictMixin
, ImmutableDictMixin
, OrderedMultiDict
, MultiDict
):
Method | get |
Return the default value if the requested data doesn't exist. If `type` is provided and is a callable it should convert the value, return it or raise a :exc:`ValueError` if that is not possible. In this case the function will return the default as if the value was not found:... |
werkzeug.datastructures.MultiDict.copy
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class like for any other python immutable type (eg: :class:`tuple`).