Suppose I ssh from computer A
into computer B
and run a python script on B
which is something like the following:
...
print "Hello World"
foo()
...
Will function foo()
:
- Be executed immediately following the
print ...
statement? - Or will it be executed after the output of the
print ...
statement is visible in the terminal of computerA
?
Put differently, can I speed up a python script operated remotely via ssh via removing a lot of printouts the script might have?
Perhaps this is just a fundamental flaw in my understanding of stdout/ssh/etc. but I couldn't find an answer; enlighten me!