piping a stream to a python script

Maciej Dziardziel fiedzia at fiedzia.prv.pl
Wed Oct 27 18:18:31 EDT 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)

'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