Dicts¶
Todo
intro
set() Policy¶
Todo
strict, duck, etc.
Validation¶
If descent_validators is defined, these validators
will be run first, before member elements are validated.
If validators is defined, these
validators will be run after member elements are validated.
Dict¶
- class Dict(value=Unspecified, **kw)¶
A mapping Container with named members.
SparseDict¶
- class SparseDict(value=Unspecified, **kw)¶
A Mapping which may contain a subset of the schema’s allowed keys.
This differs from
Dictin that new instances are not created with empty values for all possible keys. In addition, mutating operations are allowed so long as the operations operate within the schema. For example, you maypop()anddelmembers of the mapping.