paste.util.multidict – Dictionaries with multiple values — Paste v1.7.5 documentation

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »

# `paste.util.multidict` – Dictionaries with multiple values

## Module Contents

class `paste.util.multidict.` `MultiDict`(*args, **kw)

  An ordered dictionary that can have multiple values for each key. Adds the methods getall, getone, mixed, and add to the normal dictionary interface.

class `paste.util.multidict.` `UnicodeMultiDict`(multi=None, encoding=None, errors='strict', decode_keys=False)

  A MultiDict wrapper that decodes returned values to unicode on the fly. Decoding is not applied to assigned values.

  The key/value contents are assumed to be `str`/`strs` or `str`/`FieldStorages` (as is returned by the `paste.request.parse_` functions).

  Can optionally also decode keys when the `decode_keys` argument is True.

  `FieldStorage` instances are cloned, and the clone’s `filename` variable is decoded. Its `name` variable is decoded when `decode_keys` is enabled.

### Navigation

- index
- modules |
- Paste v1.7.5 documentation »