Possible Duplicate:
Setting smaller buffer size for sys.stdin?
I have an input line that is longer than 4096 bytes coming into stdin in Python. The code simply says:
line = sys.stdin.readline()
which is truncating line at 4096 bytes. Anyone know a solution?