piping into a python script

Donn Ingle donn.ingle at gmail.com
Thu Jan 24 11:58:35 EST 2008


Paddy wrote:
> fileinput is set to process each file a line at a time unfortunately.
Wow. So there seems to be no solution to my OP. I'm amazed, I would have
thought a simple list of strings, one from stdin and one from the args,
would be easy to get.

I *really* don't want to open each file, that would be insane.

Perhaps I shall have to forgo the stdin stuff then, after all.

\d




More information about the Python-list mailing list