Does anybody know if there is a way to have the eq...
# python
b
Does anybody know if there is a way to have the equivalent of
.apply(([server, db])
from TypeScript in Python, instead of
.apply(lambda args:…)
or chaining lambdas?
w
I believe Python used to support array restructuring in parameter lists, but removed it. See for example https://stackoverflow.com/questions/55940225/array-destructuring-in-python. You can still have the first line of your lambda do a restructuring assignment in order to get “good” names for the array elements.
b
I see. So which is the more "pulumic" way to handle that? chained lambdas or positional arguments from a list? we are thinking about how to structure projects and setting some standards for a team and it would be good to have "one way" that people can expect.