(mapping)
Iterates over nested mapping, depth-first, in sorted order by key.
Iterates over nested mapping, depth-first, in sorted order by key.
Iterates over nested mapping depth - first in sorted order by key .
def deepvalues(mapping):
    """Iterates over nested mapping, depth-first, in sorted order by key."""
    values = vals_sorted_by_key(mapping)
    for obj in values:
        mapping = False
        try:
            obj.items
        except AttributeError:
            pass
        else:
            mapping = True
            yield from deepvalues(obj)
        if not mapping:
            yield obj
def deepvalues ( mapping ) : values = vals_sorted_by_key ( mapping ) for obj in values : mapping = False try : obj . items except AttributeError : pass else : mapping = True yield from deepvalues ( obj ) if not mapping : yield obj