News for hackers. Stuff that matters.
Re:PEP 810 – Explicit lazy imports by vvpan on Friday October 03, 2025 @04:13PM (#45467269)
I'm relatively new to Python - how does one do concurrent IO without async/await?

My main complaint, though, about Python async is - because it is opt-in I never know if I forgot a sync IO call somewhere that will block my worker. JS makes everything async by default and there is effectively no chance of blocking.

Re:PEP 810 – Explicit lazy imports by blibble on Friday October 03, 2025 @04:28PM (#45467424)
take your pick: threads, fork, non-explicit coroutines (gevent), io multiplexing (select/poll/epoll/kqueue), virtual threads/goroutines
Re:PEP 810 – Explicit lazy imports by baq on Friday October 03, 2025 @04:29PM (#45467441)
The same way you always did it: sync io in threads. Caveats are similar to async/await, but stack traces don’t suck.