The rules of reference

Mark Jackson mjackson at
Thu Oct 31 20:33:19 CET 2002

gerson.kurz at (Gerson Kurz) writes:

> Frankly, I'm stunned.

Shouldn't be.  "python" executes the code in file in the
__main__ namespace.  "import a (in" executes the code in file in module a's namespace.  Try incanting "python -i" to stay
at the interactive prompt and examining the values of num and

Mark Jackson -
    How can anyone be expected to govern a country with two
    hundred and forty-six cheeses?  - Charles de Gaulle

More information about the Python-list mailing list