Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
Map ``function`` across the values of ``dictionary``.

:return: A dict with the same keys as ``dictionary``, where the value
    of each key ``k`` is ``function(dictionary[k])``.

        def map_values(function, dictionary):
    """Map ``function`` across the values of ``dictionary``.

    :return: A dict with the same keys as ``dictionary``, where the value
        of each key ``k`` is ``function(dictionary[k])``.
    """
    return dict((k, function(dictionary[k])) for k in dictionary)
        


src/t/r/treeshape-0.2.1/treeshape/_matchers.py   treeshape(Download)
import os
 
from testtools.helpers import map_values
from testtools.matchers import (
    ContainsDict,
        # The pattern is that a user doesn't specify attributes they don't
        # care about.  Thus, we return a ContainsDict matcher.
        return ContainsDict(map_values(_to_matcher, attrs))
 
    def match(self, path):
        found_shape = load_tree(path)
        expected_shape = add_implicit_directories(self.shape)
        expected_shape = map_values(self._matchify_attributes, expected_shape)

src/t/x/txpkgme-0.3/txpkgme/reports.py   txpkgme(Download)
from subunit.filters import run_tests_from_stream
from testtools import TestByTestResult
from testtools.helpers import map_values
 
from .utils import dump_json
def parse_details(details):
    return map_values(_parse_detail, details)
 
 
def parse_subunit(subunit_stream):