On 2021-03-26 at 21:06:19 -0400, Avi Gross via Python-list <python-list at python.org> wrote: > A generator that opens one file at a time (or STDIN) in a consistent > manner, would be a reasonable thing to have as part of emulating AWK. https://docs.python.org/3/library/fileinput.html