During the conversion of my program with a delay, I came across a frequently used programming pattern that does not work with a delay. Example:
from dask import delayed @delayed def myFunction(): return 1,2 a, b = myFunction() a.compute()
Raises: TypeError: Delayed objects of unspecified length are not iterable While the following work around does not. But it looks a lot more awkward
from dask import delayed @delayed def myFunction(): return 1,2 dummy = myFunction() a, b = dummy[0], dummy[1] a.compute()
Is this the intended behavior?
source share