Skip to content

Latest commit

 

History

History
348 lines (235 loc) · 9.74 KB

File metadata and controls

348 lines (235 loc) · 9.74 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`.)

os

pathlib

symtable

Optimizations

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