Skip to content

Commit d590685

Browse files
gh-133879: Clean up What's New for 3.15 (#140435)
Clean up What's New for 3.15 A bit early but I was reading through it and noticed some issues: - A few improvements were listed in the removals section - The "Porting to 3.15" section in the C API chapter had some changes that aren't about the C API - Some other typos and wording fixes
1 parent 7a9437d commit d590685

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

Doc/deprecations/pending-removal-in-3.16.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Pending removal in Python 3.16
6363

6464
* :mod:`logging`:
6565

66-
Support for custom logging handlers with the *strm* argument is deprecated
67-
and scheduled for removal in Python 3.16. Define handlers with the *stream*
68-
argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.)
66+
* Support for custom logging handlers with the *strm* argument is deprecated
67+
and scheduled for removal in Python 3.16. Define handlers with the *stream*
68+
argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.)
6969

7070
* :mod:`mimetypes`:
7171

Doc/whatsnew/3.15.rst

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,14 @@ math
440440
(Contributed by Bénédikt Tran in :gh:`135853`.)
441441

442442

443+
mimetypes
444+
---------
445+
446+
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
447+
* Rename ``application/x-texinfo`` to ``application/texinfo``.
448+
(Contributed by Charlie Lin in :gh:`140165`)
449+
450+
443451
mmap
444452
----
445453

@@ -612,6 +620,17 @@ types
612620
as described in :pep:`667`.
613621

614622

623+
unicodedata
624+
-----------
625+
626+
* The Unicode database has been updated to Unicode 17.0.0.
627+
628+
* Add :func:`unicodedata.isxidstart` and :func:`unicodedata.isxidcontinue`
629+
functions to check whether a character can start or continue a
630+
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_ identifier.
631+
(Contributed by Stan Ulbrych in :gh:`129117`.)
632+
633+
615634
unittest
616635
--------
617636

@@ -720,14 +739,6 @@ importlib.resources
720739
(Contributed by Semyon Moroz in :gh:`138044`)
721740

722741

723-
mimetypes
724-
---------
725-
726-
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
727-
* Rename ``application/x-texinfo`` to ``application/texinfo``.
728-
(Contributed by Charlie Lin in :gh:`140165`)
729-
730-
731742
pathlib
732743
-------
733744

@@ -777,7 +788,7 @@ typing
777788
(Contributed by Bénédikt Tran in :gh:`133817`.)
778789

779790
* Using ``TD = TypedDict("TD")`` or ``TD = TypedDict("TD", None)`` to
780-
construct a :class:`~typing.TypedDict` type with zero field is no
791+
construct a :class:`~typing.TypedDict` type with zero fields is no
781792
longer supported. Use ``class TD(TypedDict): pass``
782793
or ``TD = TypedDict("TD", {})`` instead.
783794
(Contributed by Bénédikt Tran in :gh:`133823`.)
@@ -810,17 +821,6 @@ typing
810821
(Contributed by Nikita Sobolev in :gh:`133601`.)
811822

812823

813-
unicodedata
814-
-----------
815-
816-
* The Unicode database has been updated to Unicode 17.0.0.
817-
818-
* Add :func:`unicodedata.isxidstart` and :func:`unicodedata.isxidcontinue`
819-
functions to check whether a character can start or continue a
820-
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_ identifier.
821-
(Contributed by Stan Ulbrych in :gh:`129117`.)
822-
823-
824824
wave
825825
----
826826

@@ -847,7 +847,7 @@ New deprecations
847847
* CLI:
848848

849849
* Deprecate :option:`-b` and :option:`!-bb` command-line options
850-
and schedule them to become no-op in Python 3.17.
850+
and schedule them to become no-ops in Python 3.17.
851851
These were primarily helpers for the Python 2 -> 3 transition.
852852
Starting with Python 3.17, no :exc:`BytesWarning` will be raised
853853
for these cases; use a type checker instead.
@@ -858,8 +858,8 @@ New deprecations
858858

859859
* In hash function constructors such as :func:`~hashlib.new` or the
860860
direct hash-named constructors such as :func:`~hashlib.md5` and
861-
:func:`~hashlib.sha256`, their optional initial data parameter could
862-
also be passed a keyword argument named ``data=`` or ``string=`` in
861+
:func:`~hashlib.sha256`, the optional initial data parameter could
862+
also be passed as a keyword argument named ``data=`` or ``string=`` in
863863
various :mod:`hashlib` implementations.
864864

865865
Support for the ``string`` keyword argument name is now deprecated and
@@ -962,31 +962,11 @@ Changed C APIs
962962
Porting to Python 3.15
963963
----------------------
964964

965-
* :class:`sqlite3.Connection` APIs has been cleaned up.
966-
967-
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
968-
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
969-
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
970-
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
971-
:meth:`~sqlite3.Connection.set_progress_handler` and
972-
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
973-
974-
(Contributed by Serhiy Storchaka in :gh:`133595`.)
975-
976965
* Private functions promoted to public C APIs:
977966

978967
The |pythoncapi_compat_project| can be used to get most of these new
979968
functions on Python 3.14 and older.
980969

981-
* :data:`resource.RLIM_INFINITY` is now always positive.
982-
Passing a negative integer value that corresponded to its old value
983-
(such as ``-1`` or ``-3``, depending on platform) to
984-
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
985-
(Contributed by Serhiy Storchaka in :gh:`137044`.)
986-
987-
* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
988-
underlying syscall, instead of raising a :exc:`SystemError`.
989-
990970

991971
Removed C APIs
992972
--------------
@@ -1106,3 +1086,23 @@ Porting to Python 3.15
11061086

11071087
This section lists previously described changes and other bugfixes
11081088
that may require changes to your code.
1089+
1090+
* :class:`sqlite3.Connection` APIs has been cleaned up.
1091+
1092+
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
1093+
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
1094+
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
1095+
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
1096+
:meth:`~sqlite3.Connection.set_progress_handler` and
1097+
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
1098+
1099+
(Contributed by Serhiy Storchaka in :gh:`133595`.)
1100+
1101+
* :data:`resource.RLIM_INFINITY` is now always positive.
1102+
Passing a negative integer value that corresponded to its old value
1103+
(such as ``-1`` or ``-3``, depending on platform) to
1104+
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
1105+
(Contributed by Serhiy Storchaka in :gh:`137044`.)
1106+
1107+
* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
1108+
underlying syscall, instead of raising a :exc:`SystemError`.

0 commit comments

Comments
 (0)