def viewvalues(mapping):
    """
    Get a value view to a mapping

    :type mapping: dict
    """
    try:
        return mapping.viewvalues()
    except AttributeError:
        return mapping.values()
