The rules of reference

Jeff Epler jepler at unpythonic.net
Thu Oct 31 14:25:23 EST 2002


On Thu, Oct 31, 2002 at 08:21:25PM +0100, Gerson Kurz wrote:
> 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.

60 was assigned to __main__.num, but a.num was only set once (to 42)

Jeff




More information about the Python-list mailing list