news.volyx.in

Python 3.11.0 final (discuss.python.org)

646 points by pantalaimon · 1414 days ago · 295 comments on HN

Article summary

Python 3.11.0 has been released, featuring improvements such as better tracebacks, faster execution, and new language features. The release includes several notable changes, including support for exception groups and improved typing. The new version is up to 10-60% faster than Python 3.10. The release team has put significant effort into making this the best version of Python possible.

Main themes

  • Python 3.11 release
  • performance improvements
  • language features
  • GIL removal
  • JIT compiler
  • JavaScript comparison
  • C API complexity
  • debugging enhancements

What commenters say

  • The new error highlighting feature in Python 3.11 will greatly improve debugging experiences.
  • Removing the GIL and improving performance is crucial for Python's future growth and adoption.
  • Some commenters believe that Python's ease of calling C libraries is a curse that hampers the language's evolution.
  • Others argue that the lack of a JIT compiler in Python is a significant disadvantage compared to other languages like JavaScript.
  • The performance difference between Python and JavaScript is largely due to the vast resources invested in JavaScript development.
  • A simple JIT compiler is planned for a future Python release, which may help improve performance.
  • The complexity of maintaining a JIT compiler and ensuring security should not be underestimated.
  • Python's large and complex C API is a significant obstacle to evolving the interpreter without breaking third-party bindings.