Release: | |release| |
---|---|
Date: | |today| |
This article explains the new features in Python 3.12, compared to 3.11.
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.12 moves towards release, so it's worth checking back even after reading earlier versions.
- None yet.
- :c:func:`PyFrame_BlockSetup` and :c:func:`PyFrame_BlockPop` have been removed.
The following undocumented :mod:`sqlite3` features, deprecated in Python 3.10, are now removed:
sqlite3.enable_shared_cache()
sqlite3.OptimizedUnicode
(Contributed by Erlend E. Aasland in :gh:`92548`)
This section lists previously described changes and other bugfixes that may require changes to your code.
- More strict rules are now applied for numerical group references and group names in regular expressions. Only sequence of ASCII digits is now accepted as a numerical reference. The group name in bytes patterns and replacement strings can now only contain ASCII letters and digits and underscore. (Contributed by Serhiy Storchaka in :gh:`91760`.)