Skip to content

parallel_map is incompatible with map #15

@emlun

Description

@emlun

Python's builtin map function has the call signature map(function, iterable...), meaning multiple iterables can be passed as arguments to a function with multiple arguments. For instance, the following is valid:

def f(a, b):
    return (a,b)
print map(f, [0,1], [2,3])

Output: [(0,2), (1,3)]

See the documentation for details: http://docs.python.org/library/functions.html#map

parallel_map, on the other hand, only takes one iterable. Is it possible to extend the functionality so that the call signature is compatible with map?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions