Skip to content

Commit 56daac8

Browse files
"ternary" -> "three-argument"
1 parent b563d1c commit 56daac8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Doc/reference/datamodel.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ left undefined.
33193319
:meth:`__divmod__` method should be the equivalent to using
33203320
:meth:`__floordiv__` and :meth:`__mod__`; it should not be related to
33213321
:meth:`__truediv__`. Note that :meth:`__pow__` should be defined to accept
3322-
an optional third argument if the ternary version of the built-in :func:`pow`
3322+
an optional third argument if the three-argument version of the built-in :func:`pow`
33233323
function is to be supported.
33243324

33253325
If one of those methods does not support the operation with the supplied
@@ -3357,13 +3357,13 @@ left undefined.
33573357
is a subclass of ``type(x)``. [#]_
33583358

33593359
Note that :meth:`__rpow__` should be defined to accept an optional third
3360-
argument if the ternary version of the built-in :func:`pow` function
3360+
argument if the three-argument version of the built-in :func:`pow` function
33613361
is to be supported.
33623362

33633363
.. versionchanged:: next
33643364

3365-
Ternary :func:`pow` now try calling :meth:`~object.__rpow__` if necessary.
3366-
Previously it was only called in binary :func:`!pow` and the binary
3365+
Three-argument :func:`pow` now try calling :meth:`~object.__rpow__` if necessary.
3366+
Previously it was only called in two-argument :func:`!pow` and the binary
33673367
power operator.
33683368

33693369
.. note::

Doc/whatsnew/3.14.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ Other language changes
307307
The testbed can also be used to run the test suite of projects other than
308308
CPython itself. (Contributed by Russell Keith-Magee in :gh:`127592`.)
309309

310-
* Ternary :func:`pow` now try calling :meth:`~object.__rpow__` if necessary.
311-
Previously it was only called in binary :func:`!pow` and the binary
310+
* Three-argument :func:`pow` now try calling :meth:`~object.__rpow__` if necessary.
311+
Previously it was only called in two-argument :func:`!pow` and the binary
312312
power operator.
313313
(Contributed by Serhiy Storchaka in :gh:`130104`.)
314314

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Ternary :func:`pow` now try calling :meth:`~object.__rpow__` if
1+
Three-argument :func:`pow` now try calling :meth:`~object.__rpow__` if
22
necessary.
3-
Previously it was only called in binary :func:`!pow` and the binary
3+
Previously it was only called in two-argument :func:`!pow` and the binary
44
power operator.

0 commit comments

Comments
 (0)