news.volyx.in

Python 3.12 (python.org)

652 points by qsort · 1057 days ago · 328 comments on HN

Article summary

The article discusses the new features in Python 3.12, including more flexible f-string parsing, support for the buffer protocol, and isolated subinterpreters with separate Global Interpreter Locks. These changes aim to improve the language's performance, readability, and usability. The article also mentions improved error messages and support for the Linux perf profiler. However, the full text of the article is not available, and the discussion is based on the comments.

Main themes

  • Python 3.12 features
  • f-string parsing
  • isolated subinterpreters
  • performance improvement
  • GIL limitations
  • mixed language programming
  • concurrency and parallelism

What commenters say

  • The new f-string parsing feature may make the code harder to read and more prone to abuse.
  • Isolated subinterpreters are a significant improvement over multiprocessing, offering better performance and easier communication between threads.
  • The use of subinterpreters can be beneficial for mixed C++ and Python code, allowing for concurrent execution and shared state access.
  • Some commenters argue that the changes are not significant enough and that the Global Interpreter Lock (GIL) is still a major limitation.
  • Others see the changes as a step in the right direction, improving the language's overall performance and usability.
  • There is a debate about the usefulness of subinterpreters compared to multiprocessing and threads.
  • The new features may also have implications for the use of Cython and other languages that interact with Python.