[Tutor] Cross-Module Interaction

Walter Prins wprins at gmail.com
Sat Feb 26 12:02:16 CET 2011


On 26 February 2011 05:33, Corey Richardson <kb1pkl at aim.com> wrote:

> Aha, that explains why I didn't get any results. Each file got its own
> interpreter instance.
>

Not wanting to nit pick, but no: It's not that each *file* does has its own
interpreter instance, it's that every python instance that you start does
not automatically persist anything that gets created while it lives. In
other words, you can import many modules (files) into any given interpreter
instance, but whether or not the stuff gets persisted anywhere is a seperate
matter.

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110226/bf195047/attachment.html>


More information about the Tutor mailing list