news.volyx.in

What's Coming in Python 3.8 (lwn.net)

638 points by superwayne · 2652 days ago · 536 comments on HN

Article summary

Python 3.8 is set to be released in October with several new features, including the walrus operator, which allows assignment and testing in one line. The operator has been a contentious issue, with some arguing it goes against Python's principles. Other features include improvements to f-strings, positional-only parameters, and a faster calling convention for C extensions. The release also includes changes to the standard library and configuration handling.

Main themes

  • Python 3.8 features
  • walrus operator
  • language design
  • programming principles
  • standard library updates

What commenters say

  • The walrus operator is a useful addition that simplifies common patterns in Python code.
  • The operator goes against Python's principles of simplicity and readability.
  • The feature is not necessary and will lead to more complexity in the language.
  • The walrus operator will be used sparingly and mostly in specific contexts like while loops.
  • The operator's syntax is confusing and may lead to misunderstandings.
  • Other languages have similar features that are more readable and intuitive.
  • The addition of the walrus operator is a sign of Python's shift towards a more democratic governance model.
  • The feature's usefulness outweighs its potential drawbacks and will improve code readability.