Sorry to reply to myself again, but I think I now know the answer and
wish to post it for the archives.
Python run without '-i', if not sys.stdin.isatty(), expects to read a
whole script before doing anything else (presuming to be reading it
from a pipe). Therefore syntax errors are fatal, but oth
Further to my query about trying to make Python run unbuffered, I have
discovered that a SyntaxError seems to cause Python to close its SSH
connection:
$ ssh localhost python -u
,
File "", line 1
,
^
SyntaxError: invalid syntax
$
Whereas a different sort of error (e.g. NameError) does n