Feb-11-2017, 02:42 AM
i want to check if what is passed to a function in stdout= is a file or file descriptor. for file descriptor, checking for int is good enough. but assuming whatever is not int is a file i think is not good enough ... something might succeed with something else. i want an explicit test. right now i am checking
if 'fileno' in stdout
. i want this to work in the widest range of python versions as possible but at least 2.6-2.7 and 3.3-.
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.