[HN Gopher] Asynchronously Opening and Closing Files in Asyncio ___________________________________________________________________ Asynchronously Opening and Closing Files in Asyncio Author : signa11 Score : 26 points Date : 2020-09-05 11:42 UTC (1 days ago) (HTM) web link (nullprogram.com) (TXT) w3m dump (nullprogram.com) | robertlagrant wrote: | > This is likely in part because operating systems themselves | also lack these facilities. This is a surprising statement. My | impression was that OS file operations are generally async, with | sync built on top. | theelous3 wrote: | Just want to note and curio and trio, two non-stdlib python async | libraries, have file io as batteries included. | | I would also like to point out that asyncio made a huge mistake | here. IO is not limited to interactions with the network buffer. | I don't know how something called asyn _io_ can be released in to | stdlib, and not include disk io. | | The fact that there is no actual async file io on the OS doesn't | matter. Dealing with files is a core concept in almost every | application, and so pushing this to stdlib and hoping the python | ecosystem takes up the slack, or people handbake threaded access | in themselves, is a joke. | | Some of this is a little dated, but a friend of mine wrote this | and included my complaints about file io in there somewhere too: | | https://web.archive.org/web/20171206105117/https://veriny.tf... ___________________________________________________________________ (page generated 2020-09-06 23:00 UTC)