Skip to content

Commit 9113788

Browse files
committed
Fix imath reference in the isqrt() renaming section
1 parent 88c4891 commit 9113788

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

peps/pep-0791.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ isqrt() renaming
202202
---------------------------------------------
203203

204204
There was a brief discussion about exposing :external+py3.14:func:`math.isqrt`
205-
as ``imath.sqrt`` in the same way that :external+py3.14:func:`cmath.sqrt` is
206-
the complex version of :external+py3.14:func:`math.sqrt`. However, ``isqrt``
207-
is ultimately a different function: it is the floor of the square root. It
208-
would be confusing to give it the same name (under a different module).
205+
as ``sqrt`` in the new namespace in the same way that
206+
:external+py3.14:func:`cmath.sqrt` is the complex version of
207+
:external+py3.14:func:`math.sqrt`. However, ``isqrt`` is ultimately a
208+
different function: it is the floor of the square root. It would be confusing
209+
to give it the same name (under a different submodule).
209210

210211

211212
Module name

0 commit comments

Comments
 (0)