news.volyx.in

Python 3.15: features that didn't make the headlines (blog.changs.co.uk)

432 points by rbanffy · 100 days ago · 220 comments on HN

Article summary

The article discusses new features in Python 3.15, including improvements to asyncio, context managers, and thread-safe iterators. It highlights the ability to cancel a TaskGroup in asyncio and the introduction of threading.serialize_iterator to make iterators thread-safe. Additionally, the article mentions the addition of an xor operation to the Counter class and the ability to parse JSON objects into immutable forms. These features aim to improve the overall usability and performance of Python.

Main themes

  • Python 3.15 features
  • Asyncio improvements
  • Context manager enhancements
  • Thread safety
  • Language design
  • Programming language comparison

What commenters say

  • Python's lack of static typing and inconsistent ecosystem make it less suitable for AI coding and large-scale development.
  • The quality of training data is a significant factor in the effectiveness of AI coding tools, and Python's large but inconsistent codebase may hinder its performance.
  • Some developers prefer Python for its ease of use and rapid prototyping, while others find it flawed and prefer languages like Rust, Go, or Kotlin for their performance and reliability.
  • The use of indentation as a syntax element in Python is a point of contention, with some finding it clean and efficient, while others consider it a limitation.
  • The introduction of new features in Python 3.15, such as improved asyncio and context managers, may not be enough to address the language's underlying limitations and flaws.
  • The choice of programming language depends on the specific use case, and languages like TypeScript, Rust, and Elixir may be more suitable for certain tasks due to their strengths in areas like type safety and concurrency.
  • The cult-like following of certain programming languages, including Python, can lead to unfair criticism and downvoting of alternative perspectives.
  • The importance of syntax and language design is a matter of personal preference, with some prioritizing readability and simplicity, while others value performance and expressiveness.