opencolorio_config_aces.utilities.common_ancestor#
- opencolorio_config_aces.utilities.common_ancestor(*args)[source]#
Return the common ancestor of given iterables.
- Parameters:
*args (list, optional) – Iterables to retrieve the common ancestor from.
- Returns:
Common ancestor.
- Return type:
iterable
Examples
>>> common_ancestor(('1', '2', '3'), ('1', '2', '0'), ('1', '2', '3', '4')) ('1', '2') >>> common_ancestor('azerty', 'azetty', 'azello') 'aze'