Jul-18-2019, 02:32 AM
i think (why would i bother to do that) what would be useful is a class that takes care of multiple I/O concurrency. you just create a new instance and register your open files with it, along with optional info you want to include (pass it a tuple with the file at [0]). then you can call its wait method, giving it the time to wait (or 0 to check without waiting) and it returns the file that has something or None if there was no I/O yet to do. does that seem like a simple enough interface? could this be made to work on other platforms (by someone that knows that platform)? i know it can on Linux, BSD, and OSX. Windows i don't know (but that wouldn't stop me from making it). has it already been done? what would/should its name be?
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.