Python 2.3 on Windows XP
The following works when run from the command line.
import sys
text = sys.stdin.read()
# do something on the text
# ...
sys.stdout.write(text)
But if the above code is used as a filter program that gets another programs
output as shown below, it fails as shown.
I had some problems with some Python projects that gave variable
results that I could not track down. Eventually and reluctantly I
converted them to Java. Later, when I had more time I tried to analyze
what the Python code was doing and found something strange. The
following snippet illustrates the
On Oct 25, 5:44 pm, gershar wrote:
> I had some problems with some Python projects that gave variable
> results that I could not track down. Eventually and reluctantly I
> converted them to Java. Later, when I had more time I tried to analyze
> what the Python code was doing and fou