I’m doing a complicated hack in Python, it’s a problem when you mix for+lambda+*args (don’t do this at home kids), the boring details can be omited, the unique solution I found to resolve the problem is to pass the lambda object into the self lambda in this way:
for ...
lambda x=x, *y: foo(x, y, <selflambda>)
It’s possible?, thanks a lot.
While your question is genuinely weird, try something like: