named pipe input
eric.nieuwland at xs4all.nl
Thu Sep 1 21:28:46 CEST 2005
> $ cat file_input_3.py
> import sys
> MIAPIPE = open("una_pipe", "r")
> for riga in MIAPIPE:
> print riga,
> BUT if i try to do the same with the python code, something different
> happens: i have to type ALL the lines on console #2 and complete the
> command (ctrl-d) before seeing the lines echoed on console #1.
You could try:
for riga in MIAPIPE:
print riga # NO COMMA!
More information about the Python-list