I want to disable "return" from printing any object it is returning to python shell.
e.g A sample python script test.py looks like:
def func1():
list = [1,2,3,4,5]
print list
return list
Now, If i do following:
python -i test.py
>>>func1()
This always give me two prints on python shell. I just want to print and get returned object.