IBM / pyflowgraph

Flow graphs for Python
Apache License 2.0
25 stars 8 forks source link

Expand varargs when binding function arguments #24

Closed epatters closed 5 years ago

epatters commented 5 years ago

When recording a flow graph, *args and **kwargs arguments should be "expanded" as part of binding a function call to a function signature.

For example, one function that is currently broken is numpy's meshgrid, which has signature:

np.meshgrid(*xi, **kwargs)

Currently, the call np.meshgrid(x, y, copy=True) is bound as

xi=(x, y), kwargs={'copy': True}

Under our programming model, the call should be bound as something like

xi__0=x, xi__1=y, copy=True