Skip to content

Latest commit

 

History

History
363 lines (245 loc) · 10.1 KB

3.14.rst

File metadata and controls

363 lines (245 loc) · 10.1 KB

What's New In Python 3.14

Editor:TBD

This article explains the new features in Python 3.14, compared to 3.13.

For full details, see the :ref:`changelog <changelog>`.

Note

Prerelease users should be aware that this document is currently in draft form. It will be updated substantially as Python 3.14 moves towards release, so it's worth checking back even after reading earlier versions.

Summary -- Release highlights

New Features

Other Language Changes

New Modules

  • None yet.

Improved Modules

ast

Added :func:`ast.compare` for comparing two ASTs. (Contributed by Batuhan Taskaya and Jeremy Hylton in :issue:`15987`.)

fnmatch

os

pathlib

symtable

Optimizations

asyncio

  • :mod:`asyncio` now uses double linked list implementation for native tasks which speeds up execution by 10% on standard pyperformance benchmarks and reduces memory usage. (Contributed by Kumar Aditya in :gh:`107803`.)

Deprecated

  • Passing a complex number as the real or imag argument in the :func:`complex` constructor is now deprecated; it should only be passed as a single positional argument. (Contributed by Serhiy Storchaka in :gh:`109218`.)

Removed

argparse

ast

asyncio

collections.abc

email

importlib

itertools

pathlib

pty

sqlite3

typing

urllib

Others

Porting to Python 3.14

This section lists previously described changes and other bugfixes that may require changes to your code.

Build Changes

C API Changes

New Features

Porting to Python 3.14

  • In the limited C API 3.14 and newer, :c:func:`Py_TYPE` is now implemented as an opaque function call to hide implementation details. (Contributed by Victor Stinner in :gh:`120600`.)

Deprecated

Removed