Skip to content
Prev Previous commit
Move to 3.14.
  • Loading branch information
serhiy-storchaka committed Jul 15, 2024
commit c90cae7a2132dd6acc9ad4020a6921772f16b526
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ class`. float also has the following additional methods.
If :meth:`~object.__float__` is not defined then it falls back
to :meth:`~object.__index__`.

.. versionadded:: 3.13
.. versionadded:: 3.14


.. method:: float.as_integer_ratio()
Expand Down Expand Up @@ -736,7 +736,7 @@ The :class:`!complex` type implements the :class:`numbers.Complex`
to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back
to :meth:`~object.__index__`.

.. versionadded:: 3.13
.. versionadded:: 3.14


.. _numeric-hash:
Expand Down
5 changes: 0 additions & 5 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,6 @@ free-threaded build.
Other Language Changes
======================

* Added class methods :meth:`float.from_number` and :meth:`complex.from_number`
to convert a number to :class:`float` or :class:`complex` type correspondingly.
They raise an error if the argument is a string.
(Contributed by Serhiy Storchaka in :gh:`84978`.)

* Allow the *count* argument of :meth:`str.replace` to be a keyword.
(Contributed by Hugo van Kemenade in :gh:`106487`.)

Expand Down
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ New Features
Other Language Changes
======================

* Added class methods :meth:`float.from_number` and :meth:`complex.from_number`
to convert a number to :class:`float` or :class:`complex` type correspondingly.
They raise an error if the argument is a string.
(Contributed by Serhiy Storchaka in :gh:`84978`.)


New Modules
Expand Down