reading stdinput

Michael Hall admin at mulga.com.au
Sun Mar 18 02:41:00 CET 2001


Please excuse this ultra newbie question ...

How do I read standard input into a Python script? I'm trying to do the
same as 'read' in a shell script to create a variable. I've played about
with various combinations of 'sys.stdin.read()' and such but no go.

If there is a better list for newbie questions like this, please let me
know.

***********************************************
Michael Hall - mick at mulga.com.au - mulga.com.au
***********************************************






More information about the Python-list mailing list