"Fredrik Lundh" <fredrik at pythonware.com> writes: > when you run "python x.py", that script runs in the > __main__ namespace. Oops, I didn't make the connection that x.py was also __main__. I guess I should try not to post so late. Thanks.