title: How to get FULL type name in python?
body: <p>Printing result of <code>type()</code> in Python sometimes reveals type name that is not in current scope. For example, following code will display <code>"&lt;type 'frame'&gt;"</code></p>
  
  <pre><code>import inspect
  a = inspect.currentframe()
  print( type( a ) )
  </code></pre>
  
  <p>But there is no <code>frame</code> type in current scope! If i try to use it in interactive interpreter, i get an error:</p>
  
  <pre><code>&gt;&gt;&gt; frame
  NameError: name 'frame' is not defined
  </code></pre>
  
  <p>So is it any way to get a "fully qualified" type name like "inspect.something.frame" so i can refer it in my code?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Unfortunately, <code>__module__</code> is not working too:</p>
  
  <pre><code>&gt;&gt;&gt; type( a ).__module__
  '__builtin__'
  </code></pre>