24 Feb
2020
24 Feb
'20
8:39 p.m.
24.02.20 22:02, Guido van Rossum пише:
Hm, that's actually an interesting take. Can you compare it to the kind of "quoting" that happens in a lambda? Is there some kind of translation of the OP's original example (Lottery ~ Literacy + Wealth + Region) to a lambda involving those words?
I think that a named function is more appropriate than a lambda, because we need also the name of the output parameter: def Lottery(Literacy, Wealth, Region): And the most known application of such technique is fixtures in pytest.