Deutsch English Français Italiano |
<vqras6$2fsqk$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: Python recompile Date: Wed, 12 Mar 2025 06:50:46 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: <vqras6$2fsqk$1@dont-email.me> References: <vq1qas$j22$1@gallifrey.nk.ca> <vqeun4$3iqbq$1@dont-email.me> <vqfcbe$3lkkc$1@dont-email.me> <871pv861ht.fsf@nosuchdomain.example.com> <20250308192940.00001351@yahoo.com> <vqi1ge$8jg8$1@dont-email.me> <vqibt3$ahu0$3@dont-email.me> <vqiibq$bq1o$7@dont-email.me> <20250309012626.00001276@yahoo.com> <vqiugc$dv5o$2@dont-email.me> <vql9fu$vluh$1@dont-email.me> <vqlfrj$10rr4$2@dont-email.me> <vqli6g$114cj$3@dont-email.me> <vqm0b9$179ca$1@dont-email.me> <vqnfvp$1gsl4$2@dont-email.me> <20250310135828.116@kylheku.com> <vqnkdq$1gsl4$6@dont-email.me> <vqnmbn$1i1s0$6@dont-email.me> <vqnmig$1ie8j$2@dont-email.me> <vqns51$1jibk$5@dont-email.me> <vqo5hd$1lant$1@dont-email.me> <vqo9df$1ls6a$2@dont-email.me> <vqoe8o$1qblf$1@dont-email.me> <vqolqv$1rfnf$5@dont-email.me> <vqq8v2$262gq$1@dont-email.me> <vqqf3r$273mt$6@dont-email.me> <vqqjra$286h8$2@dont-email.me> <vqqlff$28fls$7@dont-email.me> <vqqtjv$2a3dv$1@dont-email.me> <vqqu21$2a18r$3@dont-email.me> <vqr25u$2eit2$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 12 Mar 2025 07:50:47 +0100 (CET) Injection-Info: dont-email.me; posting-host="e79dca7698d4321e2270f1d17dc9241d"; logging-data="2618196"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AxSJ+OHnVmz6l/qPkF0yZ" User-Agent: Pan/0.162 (Pokrosvk) Cancel-Lock: sha1:lPPKraVVQbBP5nMtQVH/dlG6ij8= Bytes: 3027 On Tue, 11 Mar 2025 21:22:22 -0700, Chris M. Thomasson wrote: > On 3/11/2025 8:12 PM, Lawrence D'Oliveiro wrote: > >> On Tue, 11 Mar 2025 20:04:30 -0700, Chris M. Thomasson wrote: >> >>> IOCP works fine ... >> >> But not with pipes. > > Never tried them with pipes, only sockets. The Python developers have tried. They ended up creating two event loop implementations on Windows, neither of which quite covers all the bases <https://docs.python.org/3/library/asyncio-eventloop.html#event-loop-implementations>. According to the platform support notes <https://docs.python.org/3/library/asyncio-platforms.html>, SelectorEventLoop can only handle sockets (and has a limit of 512 of them), not pipes or subprocesses. ProactorEventLoop uses your favourite IOCP, but does not allow the addition of reader/writer callbacks for caller-supplied file descriptors. Neither one supports signal handlers. And there seems to be no Windows equivalent to Unix-style sockets. So on Windows, it’s a question of choosing which one is the least bad fit for your needs, and hoping you can make that work over your entire program.