On Wed, Apr 22, 2020 at 1:22 PM Chris Angelico firstname.lastname@example.org wrote:
On Thu, Apr 23, 2020 at 6:18 AM M.-A. Lemburg email@example.com wrote:
Instead of keeping values in local variables, you store them in the namespace object
Meaning that every *local* use of those same names now has to be adorned with "ns." to access the same thing:
ns.channel = get_channel_setup(ns.channelid)
Thanks, I think that's even worse than using locals(). Didn't think that was possible. :)
Whether it's worse or not will very much be situation dependent, but my experie3nce is that if I'm passing a bunch of keyword arguments along, most of them, ate NOT used directly in the local namespace anyway.