generate_changelog.utilities.resolve_name
resolve_name#
- generate_changelog.utilities.resolve_name(obj, name, default=None)[source]#
Get a key or attr
name
from obj or default value.Copied and modified from Django Template variable resolutions
Resolution methods:
Mapping key lookup
Attribute lookup
Sequence index
- Parameters:
- Return type:
- Returns:
The value at the resolved name or the default value.
- Raises:
TypeError, AttributeError – If accessing the property raises one of these exceptions.