Skip to content

Commit 99c1d09

Browse files
miss-islingtonskirpichevorsenthil
authored
[3.14] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (#137536)
gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (cherry picked from commit 37b5a0d) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Senthil Kumaran <[email protected]>
1 parent 2de18f2 commit 99c1d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ are always available. They are listed here in alphabetical order.
15801580
``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is
15811581
equivalent to using the power operator: ``base**exp``.
15821582

1583-
The arguments must have numeric types. With mixed operand types, the
1583+
When arguments are builtin numeric types with mixed operand types, the
15841584
coercion rules for binary arithmetic operators apply. For :class:`int`
15851585
operands, the result has the same type as the operands (after coercion)
15861586
unless the second argument is negative; in that case, all arguments are

0 commit comments

Comments
 (0)