title: Python Wildcard Import Vs Named Import
body: <p>Ok, I have some rather odd behavior in one of my Projects and I'm hoping someone can tell me why.  My file structure looks like this:</p>
  
  <pre><code>MainApp.py
  res/
    __init__.py
    elements/
      __init__.py
      MainFrame.py
  </code></pre>
  
  <p>Inside of MainFrame.py I've defined a class named RPMWindow which extends wx.Frame.</p>
  
  <p>In MainApp.py this works:</p>
  
  <pre><code>from res.elements.MainFrame import *
  </code></pre>
  
  <p>And this does not:</p>
  
  <pre><code>from res.elements.MainFrame import RPMWindow
  </code></pre>
  
  <p>I realize that the wild card import won't hurt anything, but I'm more interested in understanding why the named import is failing when the wild card succeeds.</p>
  
  <p>When using the class name I get this traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\myApps\eclipse\plugins\org.python.pydev.debug_1.5.6.2010033101\pysrc\pydevd.py", line 953, in &lt;module&gt;
      debugger.run(setup['file'], None, None)
    File "C:\myApps\eclipse\plugins\org.python.pydev.debug_1.5.6.2010033101\pysrc\pydevd.py", line 780, in run
      execfile(file, globals, locals) #execute the script
    File "C:\Documents and Settings\Daniel\workspace\RPM UI - V2\src\MainApp.py", line 2, in &lt;module&gt;
      from res.elements.MainFrame import RPMWindow
    File "C:\Documents and Settings\Daniel\workspace\RPM UI - V2\src\res\elements\MainFrame.py", line 2, in &lt;module&gt;
      from res.elements.MenuBar import MenuBarBuilder
    File "C:\Documents and Settings\Daniel\workspace\RPM UI - V2\src\res\elements\MenuBar.py", line 2, in &lt;module&gt;
      from MainApp import _, DataCache
    File "C:\Documents and Settings\Daniel\workspace\RPM UI - V2\src\MainApp.py", line 2, in &lt;module&gt;
      from res.elements.MainFrame import RPMWindow
  ImportError: cannot import name RPMWindow
  </code></pre>
  
  <p>When using the wild card import I don't receive a traceback and my application opens.</p>