[Tutor] newbie Python Modules
wtfwhoami at gmail.com
Tue Jun 17 02:46:52 CEST 2008
Thanks Alan and Kent ...Its much clearer now.
Any tutorial/reference you recommend to read about python modules?
On Mon, Jun 16, 2008 at 5:08 PM, Kent Johnson <kent37 at tds.net> wrote:
> On Mon, Jun 16, 2008 at 4:38 PM, Guess?!? <wtfwhoami at gmail.com> wrote:
> > Also once we reload the module .... every value reverts to its original
> > value .. Am I Right?
> Yes, but maybe not in the way you think. A new copy of the module will
> be loaded and bound to the name 'eli'. But the names x, y and
> printValues, which are bound to values in the old copy of the module,
> will not change.
> So if, after all your above manipulations, you
> import eli
> you will see that x, y and printValues have the same values as before,
> but eli.x and eli.y will be restored to the original values.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor