On Thu, Jan 25, 2018 at 3:46 AM, Thomas Güttler <guettl...@thomas-guettler.de> wrote: > I found a question and answer at Stackoverflow[1] which says > that asyncio/await is like cooperative multitasking.
"Like"? It *is* a form of co-operative multitasking. > My whish is to have preemptive multitasking: The interpreter > does the yielding. The software developer does not need to > insert async/await keywords into its source code any more. The time machine strikes again! Sounds like you want threads. Check out the threading module, but be aware that many Python interpreters, including CPython (the most commonly-used Python), have restrictions on when threads can switch contexts. Chances are it'll work for you, but if it can't, you may want to consider the multiprocessing module instead. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/