It's somewhat inconvenient that AsyncBase._loop exists - it makes it hard to implement a global stdout object via a module-level stdout = aiofiles.threadpool.wrap(sys.stdout). What is the purpose of this attribute? If it is purely for performance reasons, would you accept a PR that changed all references to self._loop to self._loop or asyncio.get_running_loop()?
It's somewhat inconvenient that
AsyncBase._loop
exists - it makes it hard to implement a global stdout object via a module-levelstdout = aiofiles.threadpool.wrap(sys.stdout)
. What is the purpose of this attribute? If it is purely for performance reasons, would you accept a PR that changed all references toself._loop
toself._loop or asyncio.get_running_loop()
?