My Blog Posts

Python 3.8 beta 1 now ready to test

Python 3.8 beta 1 now ready to test

Assignment expressions

After a thorough discussion among Python developers, the pep 572accepted assignment expressions were proposed. This feature provides a new operator (: =) that you can assign a variable in an expression.

Positional arguments only

In Python, you can transmit a position, keyword, or both to an argument in a function. API designers may sometimes want to limit the arguments to just by their positions. To easily implement this, Python 3.8 comes with a new marker (/) to indicate that the arguments to the left are positional only. This is similar to the * sign that shows that arguments to your right are just the keyword.

Python Initialization Configuration

Python is highly configurable, but configurations are scattered around all the code. This release provides new functionality and builds to the Python Startup C API to provide Python developers with a "simple and reliable way" to configure Python.

Vectorcall protocol for CPython

The search contract significantly affects the flexibility and performance of your code. To optimize the calling of objects, this version introduces the Vectorcall protocol and a call rule that is already used internally for Python and internal functions.

Runtime control hooks

Python 3.8 will come with two new APIs: Control Hook and Verified Hook Opening to give you a view of a running Python application. These will make it easier for application developers and system administrators to integrate Python into existing monitoring systems.

Because this is a beta version, developers should avoid using it in production environments. The next beta version is currently scheduled to be released on July 1.

Share this article

Comments (0)