Circular reference between modules?
<p>If have this module</p>

<pre><code># mymodule.py
import __main__
</code></pre>

<p>And I import it in the python interpreter:</p>

<pre><code>&gt;&gt;&gt; import mymodule
&gt;&gt;&gt; dir(mymodule)
['__builtins__', '__doc__', '__file__', '__main__', '__name__', '__package__']
&gt;&gt;&gt; dir()
['__builtins__', '__doc__', '__name__', '__package__', 'mymodule']
&gt;&gt;&gt; import sys
&gt;&gt;&gt; sys.modules['__main__'] == mymodule.__main__
True
&gt;&gt;&gt; mymodule == mymodule.__main__.mymodule
True
</code></pre>

<p>I've just created a circular reference by importing a module that imports <code>__main__</code>. Is this bad?</p>
