> The subject says pretty much all, Given what I understand about the BEGIN block[1], this is how Python works automatically:
bash$ cat a.py print 'a1' import b print 'a2' bash$ cat b.py print 'b' bash$ python a.py a1 b a2 However, the first import does win and Python caches module-loading, so take care: bash$ cat x.py print 'one' import a print 'two' import b print 'three' bash$ python x.py one a1 B a2 two three -tkc [1] http://www.cs.cf.ac.uk/Dave/PERL/node133.html -- http://mail.python.org/mailman/listinfo/python-list