I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love.
The ones I’ve noticed are:
But I suspect that everything new in 3.7 isn’t covered at all ATM.
Ref: https://docs.python.org/3/whatsnew/3.7.html#asyncio
Added by @srittau via the report by @Mulugruntz:
Added by @srittau via the report by @brianjyoung:
I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love.
The ones I’ve noticed are:
asyncio.create_task()asyncio.run()asyncio.current_task()asyncio.all_tasks()asyncio.get_running_loop()loop.start_tls()loop.sock_sendfile()loop.sendfile()loop.sock_recv_into()BufferedProtocolStreamWriter.wait_closed()(comment by @srittau: not in documentation or implementation)Task.get_loop()Future.get_loop()Server.get_loop()start_servingargument forloop.create_server(start_serving)loop.create_unix_server(start_serving)Server.start_serving()Server.serve_forever()Server.is_serving()ssl_handshake_timeoutargument forasyncio.open_connection()asyncio.start_server()loop.create_connection()loop.create_server()loop.create_accepted_socket()Handle.cancelled()ReadTransport.is_reading()But I suspect that everything new in 3.7 isn’t covered at all ATM.
Ref: https://docs.python.org/3/whatsnew/3.7.html#asyncio
Added by @srittau via the report by @Mulugruntz:
asyncio.BaseEventLoopasyncio.WindowsProactorEventLoopPolicyasyncio.windows_eventsAdded by @srittau via the report by @brianjyoung:
New Task methods: