Well, I'll be damned... Thank you very much. I'm still getting a little
tripped up with blocking IO and whatnot, but I think I can work that
out. This was a real help, thanks again.
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import subprocess
import random
import re
import os
import time
import se
Will wrote:
> After the first number is input, the subprocess is exiting after the
> first communicate. I do not understand why.
As help(calc.communicate) says:
Read data from stdout and stderr, until end-of-file is reached.
Wait for process to _terminate_.
> Any help would be much appreciated.