Skip to content

Commit f565c09

Browse files
miss-islingtonskirpichevorsenthil
authored
[3.13] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (#137537)
gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (cherry picked from commit 37b5a0d) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Senthil Kumaran <senthil@python.org>
1 parent 4ad3603 commit f565c09

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

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

0 commit comments

Comments
 (0)