-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
GH-133879: Copyedit 3.15 What's New: Consolidate Porting #138483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AA-Turner
wants to merge
1
commit into
python:main
from
AA-Turner:docs/whatsnew/3.15-consolidate-porting
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -635,13 +635,6 @@ zipimport | |
(Contributed by Jiahao Li in :gh:`133656`.) | ||
|
||
|
||
Porting to Python 3.15 | ||
====================== | ||
|
||
This section lists previously described changes and other bugfixes | ||
that may require changes to your code. | ||
|
||
|
||
Build changes | ||
============= | ||
|
||
|
@@ -667,32 +660,6 @@ New features | |
(Contributed by Petr Viktorin in :gh:`131510`) | ||
|
||
|
||
Porting to Python 3.15 | ||
---------------------- | ||
|
||
* :class:`sqlite3.Connection` APIs has been cleaned up. | ||
|
||
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only. | ||
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function` | ||
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only. | ||
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`, | ||
:meth:`~sqlite3.Connection.set_progress_handler` and | ||
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only. | ||
|
||
(Contributed by Serhiy Storchaka in :gh:`133595`.) | ||
|
||
* Private functions promoted to public C APIs: | ||
|
||
The |pythoncapi_compat_project| can be used to get most of these new | ||
functions on Python 3.14 and older. | ||
|
||
* :data:`resource.RLIM_INFINITY` is now always positive. | ||
Passing a negative integer value that corresponded to its old value | ||
(such as ``-1`` or ``-3``, depending on platform) to | ||
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated. | ||
(Contributed by Serhiy Storchaka in :gh:`137044`.) | ||
|
||
|
||
Deprecated C APIs | ||
----------------- | ||
|
||
|
@@ -774,3 +741,40 @@ on Python 3.13 and older. | |
.. |pythoncapi_compat_project| replace:: |pythoncapi_compat_project_link|_ | ||
.. |pythoncapi_compat_project_link| replace:: pythoncapi-compat project | ||
.. _pythoncapi_compat_project_link: https://github.com/python/pythoncapi-compat | ||
|
||
|
||
Porting to Python 3.15 | ||
====================== | ||
|
||
This section lists previously described changes and other bugfixes | ||
that may require changes to your code. | ||
|
||
|
||
Changes in the Python API | ||
------------------------- | ||
|
||
* :class:`sqlite3.Connection` APIs has been cleaned up. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
* :class:`sqlite3.Connection` APIs has been cleaned up.
* :class:`sqlite3.Connection` APIs have been cleaned up.
|
||
|
||
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only. | ||
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function` | ||
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only. | ||
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`, | ||
:meth:`~sqlite3.Connection.set_progress_handler` and | ||
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only. | ||
|
||
(Contributed by Serhiy Storchaka in :gh:`133595`.) | ||
|
||
* :data:`resource.RLIM_INFINITY` is now always positive. | ||
Passing a negative integer value that corresponded to its old value | ||
(such as ``-1`` or ``-3``, depending on platform) to | ||
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated. | ||
(Contributed by Serhiy Storchaka in :gh:`137044`.) | ||
|
||
|
||
Changes in the C API | ||
-------------------- | ||
|
||
* Private functions promoted to public C APIs: | ||
|
||
The |pythoncapi_compat_project| can be used to get most of these new | ||
functions on Python 3.14 and older. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.