Skip to content

Commit 7f59031

Browse files
committed
Copyedit 3.15 What's New: Consolidate Porting
1 parent b94ee04 commit 7f59031

File tree

1 file changed

+37
-33
lines changed

1 file changed

+37
-33
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -635,13 +635,6 @@ zipimport
635635
(Contributed by Jiahao Li in :gh:`133656`.)
636636

637637

638-
Porting to Python 3.15
639-
======================
640-
641-
This section lists previously described changes and other bugfixes
642-
that may require changes to your code.
643-
644-
645638
Build changes
646639
=============
647640

@@ -667,32 +660,6 @@ New features
667660
(Contributed by Petr Viktorin in :gh:`131510`)
668661

669662

670-
Porting to Python 3.15
671-
----------------------
672-
673-
* :class:`sqlite3.Connection` APIs has been cleaned up.
674-
675-
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
676-
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
677-
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
678-
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
679-
:meth:`~sqlite3.Connection.set_progress_handler` and
680-
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
681-
682-
(Contributed by Serhiy Storchaka in :gh:`133595`.)
683-
684-
* Private functions promoted to public C APIs:
685-
686-
The |pythoncapi_compat_project| can be used to get most of these new
687-
functions on Python 3.14 and older.
688-
689-
* :data:`resource.RLIM_INFINITY` is now always positive.
690-
Passing a negative integer value that corresponded to its old value
691-
(such as ``-1`` or ``-3``, depending on platform) to
692-
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
693-
(Contributed by Serhiy Storchaka in :gh:`137044`.)
694-
695-
696663
Deprecated C APIs
697664
-----------------
698665

@@ -774,3 +741,40 @@ on Python 3.13 and older.
774741
.. |pythoncapi_compat_project| replace:: |pythoncapi_compat_project_link|_
775742
.. |pythoncapi_compat_project_link| replace:: pythoncapi-compat project
776743
.. _pythoncapi_compat_project_link: https://github.com/python/pythoncapi-compat
744+
745+
746+
Porting to Python 3.15
747+
======================
748+
749+
This section lists previously described changes and other bugfixes
750+
that may require changes to your code.
751+
752+
753+
Changes in the Python API
754+
-------------------------
755+
756+
* :class:`sqlite3.Connection` APIs has been cleaned up.
757+
758+
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
759+
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
760+
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
761+
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
762+
:meth:`~sqlite3.Connection.set_progress_handler` and
763+
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
764+
765+
(Contributed by Serhiy Storchaka in :gh:`133595`.)
766+
767+
* :data:`resource.RLIM_INFINITY` is now always positive.
768+
Passing a negative integer value that corresponded to its old value
769+
(such as ``-1`` or ``-3``, depending on platform) to
770+
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
771+
(Contributed by Serhiy Storchaka in :gh:`137044`.)
772+
773+
774+
Changes in the C API
775+
--------------------
776+
777+
* Private functions promoted to public C APIs:
778+
779+
The |pythoncapi_compat_project| can be used to get most of these new
780+
functions on Python 3.14 and older.

0 commit comments

Comments
 (0)