Ruby has ARGF and Perl has the diamond operator, but what convenience object or operator does Python provide for reading from files provided on the command line or stdin?

import fileinput
for line in fileinput.input():
    process(line)

http://docs.python.org/2/library/fileinput.html