This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ncoghlan, paul.moore, pje
Date 2008-03-21.04:49:28
SpamBayes Score 0.09052258
Marked as misclassified No
Message-id <1206074973.16.0.258850672937.issue2439@psf.upfronthosting.co.za>
In-reply-to
Content
To clarify the intent of the section of PEP 302 Paul quoted: the
*module* object gets reused, but the contents of mod.__dict__ are
clobbered and the module code re-executed.

So it's the same module object, but with brand new contents (this is why
"from foo import bar" and "reload(foo)" do not play nicely with each
other, but doing "import foo" and then invoking "foo.bar" picks up the
new version of "bar" after a reload).
History
Date User Action Args
2008-03-21 04:49:33ncoghlansetspambayes_score: 0.0905226 -> 0.09052258
recipients: + ncoghlan, paul.moore, pje
2008-03-21 04:49:33ncoghlansetspambayes_score: 0.0905226 -> 0.0905226
messageid: <1206074973.16.0.258850672937.issue2439@psf.upfronthosting.co.za>
2008-03-21 04:49:31ncoghlanlinkissue2439 messages
2008-03-21 04:49:31ncoghlancreate