Python 3.8 beta started, the Beta 1 released

Last week, the team behind the Python announced the release of the Python 3.8.0b1 version, this is the first four beta preview version of Python 3.8 release planned in. This release marks the beginning of beta stage, you can test the new features of this stage, and make your applications ready for the new version.

Python 3.8 beta officially began released Beta 1 version of Python 3.8 beta started, the Beta 1 released

Here is the Python 3.8 version of the upcoming release of some of the features:

Assignment expression

After extensive discussion of Python developers after proposed in PEP 572 in assignment expression. This feature introduces a new operator (: =), you can use it to assign the variables in the expression.

Positional-only parameter

In Python, may be simultaneously passed through the position parameters, or both, to the function key. API designers sometimes may want to limit only pass parameters by position. In order to facilitate the achievement of this, Python 3.8 is included with a new mark (/) to indicate that it is the only argument left position. This is similar to *, which indicates the right argument only keywords.

Python initial configuration

Python is highly configurable, but in a dispersed configuration code. This version introduces a new function and structure to initialize Python C API, provides "simple and reliable method" Configuring Python for Python developers.

CPython's Vectorcall agreement

Enhancements introduced the flexibility and performance of the code. In order to optimize the call object, this release introduces Vectorcall agreement and calling convention for Python and has a built-in function internally.

Run-time auditing hook

Python 3.8 will offer two new api: Audit Hook and verify Open Hook, give you insight into Python applications are running. This will help application developers and system administrators to Python into their existing monitoring systems.

Since this is a beta version, developers should avoid using it in a production environment. The next beta version is currently planned for release on July 1.

Guess you like

Origin www.cnblogs.com/probemark/p/11117667.html