mp_os_dupterm_poll shortcut considered broken #19849
Unanswered
m-u-xyz
asked this question in
Core Development
Replies: 2 comments
|
Can you describe what you're trying to do a bit more? Do you mean you're keeping your asyncio loop running while also allowing the interactive console to keep running? |
0 replies
|
Exactly. I'm running the asyncio loop a few times whenever the REPL checks whether there's input available. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
mp_os_dupterm_poll() contains this snippet:
Does anybody have a problem with removing this optimization?
The problem is that if you run your asyncio loop by hijacking the REPL's input poll loop via
duptermand a specially-crafted , which admittedly is a hack but works rather well, then this shortcut may bypass the ioctl hook and thus prevents the loop from running reliably, which makes my background tasks sad.All reactions