libb.ismapping

ismapping(something)[source]

Check if something is a mapping (dict-like).

Parameters:

something – Object to check.

Returns:

True if the object is a mapping.

Return type:

bool

Example:

>>> ismapping(dict())
True