Re: stdin, stdout, redmon

2008-01-22 Thread Bernard Desnoues
ontains: > > import sys > > print sys.stdin.readlines() > > > test.txt contains: > > Testline1 > Testline2 > > > Output of 'python test3.py < test.txt' is: > > ['Testline1\n', 'Testline2'] > > > Just plain

Re: stdin, stdout, redmon

2008-01-21 Thread Bernard Desnoues
> one search for the terms 'python read stdin' > > Rolf > > Bernard Desnoues wrote: >> Hi, >> >> I've got a problem with the use of Redmon (redirection port monitor). >> I intend to develop a virtual printer so that I can modify data sent &g

stdin, stdout, redmon

2008-01-21 Thread Bernard Desnoues
" doesn't work. "f = open(sys.stdin)" doesn't work. I don't find anything in the documentation. How to do that ? Thanks in advance. Bernard Desnoues Librarian Bibliothèque de géographie - Sorbonne -- http://mail.python.org/mailman/listinfo/python-list