79093817

Date: 2024-10-16 11:27:33
Score: 1
Natty:
Report link

Changing:

fi = sys.stdin if select.select([ sys.stdin, ], [], [], 0.0 )[ 0 ] else None

to

fi = sys.stdin if not sys.stdin.isatty() else None

seems to work reliably, so I will use that. It would still be nice to hear an explanation of what is going wrong with the select statement, however.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: PatB