Feb-06-2022, 12:29 AM
is there a portable way to determine if reading stdin will read from the console? i know how to do this in Linux and BSD, but not in MS Windows. a single portable way would be simpler, cleaner, and more pythonic (IMHO) than 2 or 3 OS checks and OS-specific tests for a console (in a function, of course).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.