How to get the function definition from an object?
<p>Suppose we have following code defined in tester.py</p>

<pre><code>class Tester( object ):
    def method( self ):
        print 'I am a Tester'
</code></pre>

<p>and we have following defined in main.py</p>

<pre><code>from tester import Tester
t = Tester()
#print definition of t
</code></pre>

<p>is there anyway we could get the definitions of a class/function from an object in a systematic way? or we have to parse the code and extract the code definition manually then save them into a string?</p>
