python-3.11

Megjelent a Python 3.11

Python 3.11 logó

A Python csapat bejelentette a Python 3.11 stabil kiadását, mely többek közt teljesítményoptimalizálást, kivételcsoportokat, fejlesztett típustámogatást és részletesebb hibahely meghatározást tartalmaz.

Főbb újdonságok:

  • PEP 657 – Include Fine-Grained Error Locations in Tracebacks
  • PEP 654 – Exception Groups and except*
  • PEP 673 – Self Type
  • PEP 646 – Variadic Generics
  • PEP 680 – tomllib: Support for Parsing TOML in the Standard Library
  • PEP 675 – Arbitrary Literal String Type
  • PEP 655 – Marking individual TypedDict items as required or potentially-missing
  • bpo-46752 – Introduce task groups to asyncio
  • PEP 681 – Data Class Transforms
  • bpo-433030– Atomic grouping ((?>…)) and possessive quantifiers (*+, ++, ?+, {m,n}+) are now supported in regular expressions.
  • The Faster Cpython Project is already yielding some exciting results. Python 3.11 is up to 10-60% faster than Python 3.10. On average, we measured a 1.22x speedup on the standard benchmark suite. See Faster CPython for details.

Letöltés: https://www.python.org/downloads/release/python-3110/