Aug-09-2022, 11:22 PM
the .flush() method will empty buffered output, but that data actually gets written. how can i dispose of the buffered output and have it not be written. i am doing this to sys.stdout in case that matters. if there is no Pythonic way then i'll just close the file descriptor and then do .flush(). i actually will have nothing more to print. but if i did, i could, on POSIX, os.dup() the file descriptor, before doing the flush, then os.dup2() it back to where expected.
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.