皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

Python 3.10.2 发布

Python 3.10.2 发布

This is the second maintenance release of Python 3.10

Python 3.10.2 is the newest major release of the Python programming language, and it contains many new features and optimizations.

This is a special bugfix release ahead of schedule to address a memory leak that was happening on certain function calls when using Cython. The memory leak consisted of a small constant amount of bytes in certain function calls from Cython code. Although in most cases this was not very noticeable, it was very impactful for long-running applications and certain usage patterns. Check bpo-46347 for more information.

Major new features of the 3.10 series, compared to 3.9

Among the new major new features and changes so far:

  • PEP 623 — Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
  • PEP 604 — Allow writing union types as X | Y
  • PEP 612 — Parameter Specification Variables
  • PEP 626 — Precise line numbers for debugging and other tools.
  • PEP 618 — Add Optional Length-Checking To zip.
  • bpo-12782: Parenthesized context managers are now officially allowed.
  • PEP 632 — Deprecate distutils module.
  • PEP 613 — Explicit Type Aliases
  • PEP 634 — Structural Pattern Matching: Specification
  • PEP 635 — Structural Pattern Matching: Motivation and Rationale
  • PEP 636 — Structural Pattern Matching: Tutorial
  • PEP 644 — Require OpenSSL 1.1.1 or newer
  • PEP 624 — Remove Py_UNICODE encoder APIs
  • PEP 597 — Add optional EncodingWarning

bpo-38605: from __future__ import annotations (PEP 563) used to be on this list in previous pre-releases but it has been postponed to Python 3.11 due to some compatibility concerns. You can read the Steering Council communication about it here to learn more.

More resources

And now for something completely different

The Carnot cycle is a theoretical ideal thermodynamic cycle proposed by French physicist Sadi Carnot in 1824 and expanded upon by others in the 1830s and 1840s. It provides an upper limit on the efficiency that any classical thermodynamic engine can achieve during the conversion of heat into work, or conversely, the efficiency of a refrigeration system in creating a temperature difference by the application of work to the system. It is not an actual thermodynamic cycle but is a theoretical construct.

Full Changelog

转自 https://www.python.org/downloads/release/python-3102/