[issue32561] Add API to io objects for cache-only reads/writes

2020-07-04 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32561] Add API to io objects for cache-only reads/writes

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: I suggest to leave not attempt to put "async or "await" in the io module to keep it a "simple" as possible, but fix bpo-13322 (in io and _pyio modules). Instead, I suggest to write a new module only providing asynchronous methods, maybe even for open() and

[issue32561] Add API to io objects for cache-only reads/writes

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: Here a proof-of-concept of an asynchronous io module reusing the existing blocking io module: it implements AsyncBufferedReader.readline() using existing _pyio.BufferedReader.readline(). The approach seems to work, but only if bpo-13322 is fixed first:

[issue32561] Add API to io objects for cache-only reads/writes

2019-10-10 Thread Nathaniel Smith
Nathaniel Smith added the comment: > If you wanted to keep async disk access separate from the io module, then > what we'd have to do is to create a fork of all the code in the io module, > and add this feature to it. Thinking about this again today, I realized there *might* be another