Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
  • Loading branch information
serhiy-storchaka and mdickinson authored Jul 15, 2024
commit dd357528a382df34f1a617e8f833edf070092c13
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ are always available. They are listed here in alphabetical order.
to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back
to :meth:`~object.__index__`.

See also :meth:`complex.from_number` which only accept single numeric argument.
See also :meth:`complex.from_number` which only accepts a single numeric argument.

.. note::

Expand Down Expand Up @@ -686,7 +686,7 @@ are always available. They are listed here in alphabetical order.
``x.__float__()``. If :meth:`~object.__float__` is not defined then it falls back
to :meth:`~object.__index__`.

See also :meth:`float.from_number` which only accept numeric argument.
See also :meth:`float.from_number` which only accepts a numeric argument.

If no argument is given, ``0.0`` is returned.

Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ 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 error if the argument is a string.
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.
Expand Down