how to create/ref globals in an alternate namespace?

alisonken1 alisonken1 at
Sat Apr 28 00:20:30 CEST 2007

On Apr 27, 2:33 pm, "Steven W. Orr" <ste... at> wrote:
> On Friday, Apr 27th 2007 at 14:07 -0700, quoth James Stroud:

> 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?


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