我们从Python开源项目中,提取了以下12个代码示例,用于说明如何使用django.utils.six.moves.map()。
def streaming_content(self): return map(self.make_bytes, self._iterator)
def iterload_objects(import_paths): """ Load a list of objects. """ return map(load_object, import_paths)
def get_subclasses(c): """ Get all subclasses of a given class """ return c.__subclasses__() + sum(map(get_subclasses, c.__subclasses__()), [])