> Another issue that bothers me, is code reuse. Independent from whether the > 'async def' makes sense or not, it would not allow us to reuse asyncio > functions as if they were normal functions and vice versa (if I understood > that correctly). So, we would have to implement things twice for the asyncio > world and the classic world. To me, it would be important to use one > function in either world where it suits me better. I am uncertain if that > makes sense but right now it does to me.
Yes, you cannot call async function from synchronous code. There are two worlds: classic and async. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com