asyncio
asyncio copied to clipboard
asyncio historical repository
Don't know how legit is that to set_event_loop(None). Discovered this issue making testing suite, where I create new_event_loop for each test. This thing is unobvious. ``` python import asyncio command...
``` python import asyncio from contextlib import suppress async def main(): task = asyncio.ensure_future(asyncio.sleep(1)) task.cancel() try: raise Exception() except Exception: with suppress(asyncio.CancelledError): await task raise if __name__ == "__main__": loop...
i am writing a n/w bound application using python asyncio In case a bulk amount of data transferred from client , reader.read(8192) receiving an empty data please suggest me some...
I've seen a few discussions around lack of non-blocking file io support in asyncio. Normally, we assume that disk io is fast and doesn't block, but there are use cases...
...And replace it with `except BaseException` (or `except:`), making sure we understand the consequences. This would be better if a GeneratorExit is unexpectedly thrown into a coroutine (e.g. by calling...
I think we could package in a fallback module for `collections.abc` (similarly to what we do with `selectors.py`) to have better support for generators & coroutines compiled with Cython.
starttls
``` Glyph and Antoine really want a API to upgrade an existing Transport/Protocol pair to SSL/TLS, without having to create a new protocol. ``` Original issue reported on code.google.com by...
``` Hi, I created a new "traceback" branch to enhance debug in asyncio. The idea is to provide the "head" of an error (traceback where the object was created), not...
``` I'm following some discussions about HTTP/2 and a new WSGI design (see web-sig) and one issue brought up (pretty randomly) is that async frameworks typically don't let you limit...
``` I just fixed the issue #180 which documents the Server.sockets attribute. AbstractServer has no sockets attribute nor constructor. Should we add a sockets attribute to AbstractServer? Here is a...