Accessing and updating global variables among several modules

Bengt Richter bokr at oz.net
Thu Jul 17 13:47:33 EDT 2003


On 17 Jul 2003 05:28:49 -0700, fumingw at tom.com (Fuming Wang) wrote:
[...]
>
>Hi,
>
>Thanks for the replies.  I have actually found a solution to the
>problem. The problem is caused by Python creating two copies of the
>module that is passed to the interpreter. Here is a short report of
>what the problem is and how to avoid it.  Hope this can be of help for
>others.
>
>Fuming
>
>P.S. I am running Python 2.3 b2 on Windows2000
>
[...
    Very nice and clear exposition and demonstration of
    an importing gotcha and how to avoid it.
...]

Thank you for writing that up so well. I am sure it will be of help.

Regards,
Bengt Richter




More information about the Python-list mailing list