Disable Python return statement from printing object it returns
<p>I want to disable "return" from printing any object it is returning to python shell.</p>

<p>e.g A sample python script test.py looks like:</p>

<pre><code>def func1():
    list = [1,2,3,4,5]
    print list
    return list
</code></pre>

<p>Now, If i do following: </p>

<pre><code>python -i test.py
&gt;&gt;&gt;func1()
</code></pre>

<p>This always give me two prints on python shell.
I just want to print and get returned object.</p>
