Return function code
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/427453/how-can-i-get-the-source-code-of-a-python-function">How can I get the source code of a Python function?</a>  </p>
</blockquote>



<p>How do I return the code of my function?
The func_name method works as expected but not the func_code</p>

<pre><code>&gt;&gt;&gt; def testthis(): print 'test successful'
&gt;&gt;&gt; testthis()
test successful

&gt;&gt;&gt; testthis.func_name
'testthis'
&gt;&gt;&gt; testthis.func_code
&lt;code object testthis at 0124D728, file "&lt;pyshell#281&gt;", line 1&gt;
</code></pre>
