Skip to content

Commit 37b5a0d

Browse files
gh-130102: drop "require numeric arguments" from pow() docs (#137456)
Co-authored-by: Senthil Kumaran <senthil@python.org>
1 parent 350c58b commit 37b5a0d

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
@@ -1577,7 +1577,7 @@ are always available. They are listed here in alphabetical order.
15771577
``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is
15781578
equivalent to using the power operator: ``base**exp``.
15791579

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

0 commit comments

Comments
 (0)