New submission from Austin Raney <aara...@crimson.ua.edu>:
I found an issue with the concurrent.futures.ProcessPoolExecuter() example (#3) in the asyncio event loops documentation. The call to asyncio.run(main()) should be guarded by `__name__=="__main__":`, as it sits now a RuntimeError is thrown. https://docs.python.org/3/library/asyncio-eventloop.html#executing-code-in-thread-or-process-pools ---------- assignee: docs@python components: Documentation messages: 372428 nosy: aaraney, docs@python priority: normal severity: normal status: open title: Executing code in thread or process pools: run_in_executor example versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41127> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com