News for hackers. Stuff that matters.
Re:PEP 594 – Removing dead batteries from Python's standard ... by masklinn on Thursday May 23, 2019 @03:59AM (#19989530)
> Idk, it never occurred to me the need for a library that does more than "for line in sys.stdin:"

Of course if you'd only used fileinput for that it would be worthless.

However what it does is way more useful, namely iterate on the lines of all files provided as parameter (or sys.argv[:1]), fallback to sys.stdin if no files were provided, and swap the special sentinel `-` by sys.stdin.

There are no comments on this comment yet.