how to create/ref globals in an alternate namespace?
alisonken1
alisonken1 at gmail.com
Fri Apr 27 18:20:30 EDT 2007
On Apr 27, 2:33 pm, "Steven W. Orr" <ste... at syslang.net> wrote:
> On Friday, Apr 27th 2007 at 14:07 -0700, quoth James Stroud:
<snip>
>
> I'm trying to see if by being clever, I can factor out the common code of
> the four different functions and still end up with what they create ending
> up in the namespaces where they are intended to reside in. Does this make
> sense or am I way off base?
<snip>
You may be trying to get too clever.
If what you're trying to do is what I think you're trying to do, I
would suggest looking at how the logging module handles globals and
functions for an example.
More information about the Python-list
mailing list