In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Last week, the team behind Python announced the release of Python 3.8.0b1, the first of four beta release previews planned for Python 3.8. This release marks the beginning of the beta phase, where you can test new features and prepare your application for the new version.
Here are some features in the upcoming Python 3.8 release:
Assignment expression
After extensive discussion by Python developers, assignment expressions were proposed in PEP 572. This feature introduces a new operator (: =) that you can use to assign variables in the expression.
Positional-only parameter
In Python, you can pass parameters to a function by position, keyword, or both. API designers may sometimes want to restrict the passing of parameters only by location. To facilitate this, Python 3.8 will be accompanied by a new tag (/) to indicate that the parameter to its left is only positioned. This is similar to *, which indicates that the parameters on the right are only keywords.
Initialization configuration of Python
Python is highly configurable, but the configuration is scattered in the code. This version introduces new functions and structures for Python initializing C API, providing Python developers with a "simple and reliable way" to configure Python.
Vectorcall protocol of CPython
Enhancements introduce the flexibility and performance of the code. To optimize object calls, this release introduces the Vectorcall protocol and a calling convention that has been internally used for Python and built-in functions.
Runtime audit hook
Python 3.8 will provide two new api, Audit Hook and verify Open Hook, to give you an in-depth understanding of the running Python application. This will help application developers and system administrators integrate Python into their existing monitoring systems.
Since this is an beta version, developers should avoid using it in a production environment. The next beta version is currently scheduled for July 1st.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.