Skip to content

Commit 68a3264

Browse files
committed
address review: adjust news
1 parent 04356f7 commit 68a3264

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Pending removal in Python 3.20
3939

4040
(Contributed by Hugo van Kemenade and Stan Ulbrych in :gh:`76007`.)
4141

42-
* The ``__getformat__()`` class method of the :class:`float` is deprecated
43-
and will be removed in Python 3.20.
44-
42+
* The ``__getformat__()`` class method of the :class:`float` is deprecated and
43+
will be removed in Python 3.20. On CPython, ``float.__getformat__()`` always
44+
return a string, prefixed with ``"IEEE"``: to build CPython, you need support
45+
for IEEE 754 floating-point numbers since Python 3.11.
4546
(Contributed by Sergey B Kirpichev in :gh:`145633`.)

Doc/whatsnew/3.15.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,9 +1644,10 @@ New deprecations
16441644
* Deprecated :func:`!typing.no_type_check_decorator` has been removed.
16451645
(Contributed by Nikita Sobolev in :gh:`133601`.)
16461646

1647-
* The ``__getformat__()`` class method of the :class:`float` is deprecated
1648-
and will be removed in Python 3.20.
1649-
1647+
* The ``__getformat__()`` class method of the :class:`float` is deprecated and
1648+
will be removed in Python 3.20. On CPython, ``float.__getformat__()`` always
1649+
return a string, prefixed with ``"IEEE"``: to build CPython, you need support
1650+
for IEEE 754 floating-point numbers since Python 3.11.
16501651
(Contributed by Sergey B Kirpichev in :gh:`145633`.)
16511652

16521653
* ``__version__``
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
The ``__getformat__()`` class method of the :class:`float` is deprecated.
2-
Patch by Sergey B Kirpichev.
1+
The ``__getformat__()`` class method of the :class:`float` is deprecated. On
2+
CPython, ``float.__getformat__()`` always return a string, prefixed with
3+
``"IEEE"``: to build CPython, you need support for IEEE 754 floating-point
4+
numbers since Python 3.11. Patch by Sergey B Kirpichev.

0 commit comments

Comments
 (0)