File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Misc/NEWS.d/next/Core_and_Builtins Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff 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 ::
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- Ternary :func: `pow ` now try calling :meth: `~object.__rpow__ ` if
1+ Three-argument :func: `pow ` now try calling :meth: `~object.__rpow__ ` if
22necessary.
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
44power operator.
You can’t perform that action at this time.
0 commit comments