Aug-11-2020, 01:52 AM
i am calling a library that connects to some site and gets some data. sometimes it is slow. i would like for my code to output a message to stderr if this takes longer than N seconds to complete. if it completes in less than N seconds then i want no message to be output. this seems like it should be simple. i'd like to see the simplest pythonic code that can do this without using threads or processes.
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.