Class CaseInsensitiveMapping

Mapping allowing case-insensitive key lookups. Original case of keys is preserved for iteration and string representation.

Declaration

class CaseInsensitiveMapping(Mapping)
source link

Documentation

Example::

    >>> ci_map = CaseInsensitiveMapping({'name': 'Jane'})
    >>> ci_map['Name']
    Jane
    >>> ci_map['NAME']
    Jane
    >>> ci_map['name']
    Jane
    >>> ci_map  # original case preserved
    {'name': 'Jane'}

Methods

Subclasses

Reexports