Author ncoghlan
Recipients ncoghlan, paul.moore, pje
Date 2008-03-21.04:49:28
SpamBayes Score 0.0905226
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.0905226
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