I\'m essentially trying to achieve this:
>>>print \"SOME_VERY_LONG_TEXT\" | more
Of course, it doesn\'t work in Python 2.7(IDLE).
You could call it as an external process. (You have to be careful with shell=True, though.)
shell=True
import subprocess longStr = 'lots of text here' subprocess.call(['echo "'+longStr+'" | more'], shell=True)