23 May
2018
23 May
'18
6:13 p.m.
2018-05-23 14:19 GMT+03:00 Masayuki YAMAMOTO
FYI, I found a package [*] which binds a value by function keyword (I'm not the author). Note that the package writes a value in the global (or raise an error if the name already exists in local) unlike your idea.
[*] https://pypi.org/project/let3/
-- Masayuki
Thank you! Writing to a globals is an even more stripped-down version from the inteded behaviour, for example it would not work in comprehensions at all and would not work if function has the same local name. In fact comprehension/generator cases are the least interesting for me. I just wanted to minimize side-effects. With kind regards, -gdg