The rules of reference
Tom Hanks
thanks200 at hotmail.com
Thu Oct 31 20:13:32 EST 2002
Gerson.Kurz at t-online.de (Gerson Kurz) wrote in message news:<mailman.1036093925.14342.python-list at python.org>...
[snip]
> As you can see, the assignment "num = 60" is called *after* "import b". I
> know that "import b" does a recursive "import a", but *that is already done*
^^^^^^^^^^^^^^^^^^^^^^
> at the time I do the "num=60" bit. So this is what I don't get.
The above underlined section is incorrect. Running "a.py" does not import
module "a", instead it modifies the module "__main__".
I hope this helps,
Tom Hanks.
More information about the Python-list
mailing list