python - absolute import for module in the same directory
<p>I have this package:</p>

<pre><code>mypackage/
    __init__.py
    a.py
    b.py
</code></pre>

<p>And I want to import things from nodule a to module b, does it make sense to write in module b</p>

<pre><code>from mypackage.a import *
</code></pre>

<p>or should I just use</p>

<pre><code>from a import *
</code></pre>

<p>Both options will work, I'm just wondering which is better (the 2nd makes sense because it's in the same level but I'm considering the 1st to avoid collisions, for example if the system is running from a folder that contains a file named a.py).</p>
