Skip to content

Commit 26da3eb

Browse files
committed
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 38d4b43 commit 26da3eb

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
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: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,14 @@ math
424424
(Contributed by Bénédikt Tran in :gh:`135853`.)
425425

426426

427+
mimetypes
428+
---------
429+
430+
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
431+
* Rename ``application/x-texinfo`` to ``application/texinfo``.
432+
(Contributed by Charlie Lin in :gh:`140165`)
433+
434+
427435
mmap
428436
----
429437

@@ -593,6 +601,12 @@ types
593601
as described in :pep:`667`.
594602

595603

604+
unicodedata
605+
-----------
606+
607+
* The Unicode database has been updated to Unicode 17.0.0.
608+
609+
596610
unittest
597611
--------
598612

@@ -678,14 +692,6 @@ importlib.resources
678692
(Contributed by Semyon Moroz in :gh:`138044`)
679693

680694

681-
mimetypes
682-
---------
683-
684-
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
685-
* Rename ``application/x-texinfo`` to ``application/texinfo``.
686-
(Contributed by Charlie Lin in :gh:`140165`)
687-
688-
689695
pathlib
690696
-------
691697

@@ -735,7 +741,7 @@ typing
735741
(Contributed by Bénédikt Tran in :gh:`133817`.)
736742

737743
* Using ``TD = TypedDict("TD")`` or ``TD = TypedDict("TD", None)`` to
738-
construct a :class:`~typing.TypedDict` type with zero field is no
744+
construct a :class:`~typing.TypedDict` type with zero fields is no
739745
longer supported. Use ``class TD(TypedDict): pass``
740746
or ``TD = TypedDict("TD", {})`` instead.
741747
(Contributed by Bénédikt Tran in :gh:`133823`.)
@@ -765,12 +771,6 @@ typing
765771
imported or accessed from the :mod:`!typing` module.
766772

767773

768-
unicodedata
769-
-----------
770-
771-
* The Unicode database has been updated to Unicode 17.0.0.
772-
773-
774774
wave
775775
----
776776

@@ -797,7 +797,7 @@ New deprecations
797797
* CLI:
798798

799799
* Deprecate :option:`-b` and :option:`!-bb` command-line options
800-
and schedule them to become no-op in Python 3.17.
800+
and schedule them to become no-ops in Python 3.17.
801801
These were primarily helpers for the Python 2 -> 3 transition.
802802
Starting with Python 3.17, no :exc:`BytesWarning` will be raised
803803
for these cases; use a type checker instead.
@@ -808,8 +808,8 @@ New deprecations
808808

809809
* In hash function constructors such as :func:`~hashlib.new` or the
810810
direct hash-named constructors such as :func:`~hashlib.md5` and
811-
:func:`~hashlib.sha256`, their optional initial data parameter could
812-
also be passed a keyword argument named ``data=`` or ``string=`` in
811+
:func:`~hashlib.sha256`, the optional initial data parameter could
812+
also be passed as a keyword argument named ``data=`` or ``string=`` in
813813
various :mod:`hashlib` implementations.
814814

815815
Support for the ``string`` keyword argument name is now deprecated and
@@ -903,31 +903,11 @@ New features
903903
Porting to Python 3.15
904904
----------------------
905905

906-
* :class:`sqlite3.Connection` APIs has been cleaned up.
907-
908-
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
909-
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
910-
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
911-
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
912-
:meth:`~sqlite3.Connection.set_progress_handler` and
913-
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
914-
915-
(Contributed by Serhiy Storchaka in :gh:`133595`.)
916-
917906
* Private functions promoted to public C APIs:
918907

919908
The |pythoncapi_compat_project| can be used to get most of these new
920909
functions on Python 3.14 and older.
921910

922-
* :data:`resource.RLIM_INFINITY` is now always positive.
923-
Passing a negative integer value that corresponded to its old value
924-
(such as ``-1`` or ``-3``, depending on platform) to
925-
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
926-
(Contributed by Serhiy Storchaka in :gh:`137044`.)
927-
928-
* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
929-
underlying syscall, instead of raising a :exc:`SystemError`.
930-
931911

932912
Removed C APIs
933913
--------------
@@ -1047,3 +1027,23 @@ Porting to Python 3.15
10471027

10481028
This section lists previously described changes and other bugfixes
10491029
that may require changes to your code.
1030+
1031+
* :class:`sqlite3.Connection` APIs has been cleaned up.
1032+
1033+
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
1034+
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
1035+
and :meth:`~sqlite3.Connection.create_aggregate` are now positional-only.
1036+
* The first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`,
1037+
:meth:`~sqlite3.Connection.set_progress_handler` and
1038+
:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only.
1039+
1040+
(Contributed by Serhiy Storchaka in :gh:`133595`.)
1041+
1042+
* :data:`resource.RLIM_INFINITY` is now always positive.
1043+
Passing a negative integer value that corresponded to its old value
1044+
(such as ``-1`` or ``-3``, depending on platform) to
1045+
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
1046+
(Contributed by Serhiy Storchaka in :gh:`137044`.)
1047+
1048+
* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
1049+
underlying syscall, instead of raising a :exc:`SystemError`.

0 commit comments

Comments
 (0)