Skip to content

Commit 0be46e4

Browse files
Move the What's New entry to 3.16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ac0097f commit 0be46e4

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎Doc/whatsnew/3.15.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,7 @@ Other language changes
816816

817817
* Functions that take timestamp or timeout arguments now accept any real
818818
numbers (such as :class:`~decimal.Decimal` and :class:`~fractions.Fraction`),
819-
not only integers or floats.
820-
This allows to avoid the precision loss caused by the :class:`float` type.
819+
not only integers or floats, although this does not improve precision.
821820
(Contributed by Serhiy Storchaka in :gh:`67795`.)
822821

823822
.. _whatsnew315-bytearray-take-bytes:

‎Doc/whatsnew/3.16.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ Other language changes
139139
:func:`asyncio.print_call_graph` can see through them into the awaited code.
140140
(Contributed by Kumar Aditya in :gh:`157361`.)
141141

142+
* Functions that take timestamp or timeout arguments
143+
no longer convert numbers other than integers and floats
144+
(such as :class:`~decimal.Decimal` and :class:`~fractions.Fraction`)
145+
to :class:`float`.
146+
They are converted exactly, which avoids the precision loss.
147+
(Contributed by Serhiy Storchaka in :gh:`67795`.)
148+
142149

143150
Default interactive shell
144151
=========================

0 commit comments

Comments
 (0)