title: How to detect whether Python variable is an import from future
body: <p>How can we detect if a Python variable is an import from <code>__future__</code>?</p>
  
  <p>I've noticed it's a class, specifically, <code>__future__._Feature()</code>. However, all attempts at importing that class seem to fail.</p>
  
  <p><code>type()</code> returns <code>&lt;class '__future__._Feature'&gt;</code></p>
  
  <p>My attempts at getting the <code>_Feature</code> class:</p>
  
  
  
  <pre><code>&gt;&gt;&gt; from __future__ import absolute_import
  
  &gt;&gt;&gt; absolute_import
  _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
  
  &gt;&gt;&gt; type(abolute_import)
  &lt;class '__future__._Feature'&gt;
  
  &gt;&gt;&gt; from __future__ import _Feature
  SyntaxError: future feature _Feature is not defined
  
  &gt;&gt;&gt; import __future__._Feature
  ImportError: No module named '__future__._Feature'; '__future__' is not a package
  
  &gt;&gt;&gt;
  </code></pre>