PyMOTW: fileinput – Process lines from input streams

This is a special anniversary edition of PyMOTW. The first module I wrote about was fileinput. In honor of the third anniversary of the start of the series, I’ve updated the examples for fileinput and filled in more detail about features provided by the module.

Read more at pymotw.com: fileinput