On Wed, Apr 22, 2020 at 1:22 PM Chris Angelico <ros...@gmail.com> wrote:

> On Thu, Apr 23, 2020 at 6:18 AM M.-A. Lemburg <m...@egenix.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.

-CHB

-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/JIQWBMHZD4FVJCT6LZTASZVJWQ7JQ2OC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to