Re:PEP 594 – Removing dead batteries from Python's standard ...
by tomjakubowski on Wednesday May 22, 2019 @06:28PM
(#19986232)
Ruby includes something similar, ARGF. It's pretty useful over there. https://thoughtbot.com/blog/rubys-argf
[ Parent
| on HN ]
Re:PEP 594 – Removing dead batteries from Python's standard ...
by jstimpfle on Wednesday May 22, 2019 @07:00PM
(#19986513)
Well, maybe fileinput is meant to be used for making shell one-liners using the -m switch or so, like in the link you posted, or like perl/awk. Does that play nice with Python's block syntax, though?