For some reason a script that always worked is now failing :( I investigated and trimmed down to something minimal, still not working:
cat a.py:
import sys
for row in sys.stdin.readlines():
print("hey")
print(row)
Testing:
>> cat b.csv
a,b,c
1,2,3
>> cat b.csv | python a.py
// hangs for ever, if I Ctrl+C:
for row in sys.stdin.readlines():
KeyboardInterrupt
Any idea what could be going on? Thanks!
