title: How can I understand a .pyc file content
body: <p>I have a <code>.pyc</code> file. I need to understand the content of that file to know how the disassembler works of python, i.e. how can I generate a output like <code>dis.dis(function)</code> from <code>.pyc</code> file content.</p>
  
  <p>for e.g.</p>
  
  <pre><code>&gt;&gt;&gt; def sqr(x):  
  ...     return x*x
  ...
  &gt;&gt;&gt; import dis
  &gt;&gt;&gt; dis.dis(sqr)
    2           0 LOAD_FAST                0 (x)
                3 LOAD_FAST                0 (x)
                6 BINARY_MULTIPLY     
                7 RETURN_VALUE        
  </code></pre>
  
  <p>I need to get a output like this using the <code>.pyc</code> file.</p>