Python 3.7.7 released

Time: 2020-03-11Source: Huajun InformationAuthor: Internet

Python 3.7.7 is released, a bug fix version. Bug fix versions of the 3.7 series will continue to be updated until mid-2020, and security fix versions will continue to be provided until mid-2023.

Currently 3.8 is the latest feature version series, and developers are officially recommended to migrate.

Python 3.7 adds some new features compared to 3.6. Highlights include:

New syntax features:

PEP 563, defer evaluation of type annotations.

Backward-incompatible syntax changes:

Async is supported and await is now a reserved keyword.

New library modules:

contextvars: PEP 567 – context variables

dataclasses: PEP 557 – data classes

importlib.resources

New built-in features:

PEP 553, new breakpoint() function.

Python data model improvements:

PEP 562, Customize access to module properties.

PEP 560, core support for input modules and generic types.

Major improvements in the standard library:

The asyncio module has received new features, significant usability and performance improvements.

The time module gained nanosecond resolution support.

Improvements to CPython implementation:

Avoid using ASCII as the default text encoding: PEP 538, forces legacy C locale; PEP 540, forces UTF-8 runtime mode.

New development runtime mode

PEP 565, improved DeprecationWarning operation

C API improvements:

PEP 539, new C API for thread-local storage

Related articles更多>>