You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's actually pretty sensible: it lets you do a "non-blocking read", so if the data is in the buffer cache you can just return it, before spending the overhead on dispatching to a thread.
Adding support to CPython's wrappers is bpo-31368. What would be even nicer is if they add a nonblocking option to the io readers.
I think this would be fun to explore, once we have nothing better to do:
Once a mildly sane (platform-specific) implementation exists, it shouldn't be too hard to extend
wrap_file
oropen_file
appropriately.The text was updated successfully, but these errors were encountered: