I\'m essentially trying to achieve this:
>>>print \"SOME_VERY_LONG_TEXT\" | more
Of course, it doesn\'t work in Python 2.7(IDLE).
Although a bit late, the following worked for me:
def less(data): process = Popen(["less"], stdin=PIPE) try: process.stdin.write(data) process.communicate() except IOError as e: pass