News for hackers. Stuff that matters.
Re:PEP 810 – Explicit lazy imports by Alir3z4 on Friday October 03, 2025 @03:50PM (#45467056)
Me neither.

Introducing new keyword has become a recent thing in Python.

Seems Python has a deep scare since Python2 to Python3 time and is scared to do anything that causes such drama again.

For me, the worst of all is "async". If 2to3 didn't cause much division, the async definitely divided Python libraries in 2. Sync and Async.

Maybe if they want backward compatible solution, this can be done by some compile or runtime flag like they did with free threading no-gil.

Re:PEP 810 – Explicit lazy imports by sigmoid10 on Friday October 03, 2025 @04:00PM (#45467152)
Async or not in modules is a huge pain in the ass for web-dev, but thankfully a lot of Python still isn't web dev. As a Data Scientist you can live your life peacefully without ever worrying about this. But I can see why web devs like it, even though personally I really don't want to see anymore Javascript sneaking inty my Python. Especially when there is already support for IO bound concurrency elsewhere in the language. If I want to do JS syntax, I'll fucking use JS. And I really don't want to see Python go the C++ route where it just wants to be everything and do everything so that you end up with so many possible approaches to the same problem that two devs can't read each others code anymore.
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.
Re:PEP 810 – Explicit lazy imports by BiteCode_dev on Friday October 03, 2025 @05:05PM (#45467766)
Async was a soft keyword for many, many years in order to maintain compat. And before that, asyncio used yield to be even more compatible.

They took a decade to solidify that. At some point, you have to balance evolution and stability. For a language as popular as Python, you can not break the world every week, but you can't stay put for 5 years.