<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-05-23 14:19 GMT+03:00 Masayuki YAMAMOTO <span dir="ltr"><<a href="mailto:ma3yuki.8mamo10@gmail.com" target="_blank">ma3yuki.8mamo10@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>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.<br></div><div><br></div><div>[*] <a href="https://pypi.org/project/let3/" target="_blank">https://pypi.org/project/let3/</a><br></div><div><br></div><div>--<br></div><div>Masayuki<br></div></div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>With kind regards,</div><div>-gdg</div></div><br></div></div>