piping a stream to a python script

Maciej Dziardziel fiedzia at fiedzia.prv.pl
Thu Oct 28 00:18:31 CEST 2004


Matt Price wrote:

> I'd like to capture the stream in a string object.  Is there a simle
> way to do this?

Just read read from sys.stdin.

-- 
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

'Good manners will open doors that the best education cannot.' --         
   Clarence Thomas, U.S. Supreme Court Justice



More information about the Python-list mailing list