<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, May 29, 2016 at 1:49 PM Pavol Lisy <<a href="mailto:pavol.lisy@gmail.com" target="_blank">pavol.lisy@gmail.com</a>> wrote:<br></div></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">from my_test import VAR, setter, getter<br><br></blockquote></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The more I understand python the more I see that I don't understand enough.<br></blockquote></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div><br></div><div>Seems like you expected the ``VAR`` in your __main__ module would be the same variable as the one in the ``my_test`` module</div><div>Each module's globals are separate namespaces.<br></div><div>``from module import name`` is roughly equivalent to 3 lines:</div><div><br></div><div> import module</div><div> name = <a href="http://module.name" target="_blank">module.name</a></div><div> del module</div><div><br></div><div><br></div><div><br></div></div></div>