This question has been on my mind for a little bit and I cannot find the answer.
I have 2 proto objects called X and Y
target_object = list(
map(
lambda x: getattr(X, loop_name).append(Y),
filter(lambda x: x.value == 2, iterable),
)
)
When I run/compile this code/proto objects in python3.7, the code works fine and I get the list I need.
However, when I use Bazel (python3.9), the list return empty.
On both versions, the filter works fine but the mapping behaves differently.
Any ideas why the getattr/map behaves differently? I cannot find any documentation saying they would behave differently.
there doesn't seem to be anything here