]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Aug 2025 01:25:24 +0000 (03:25 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Aug 2025 01:25:24 +0000 (18:25 -0700)
gh-130102: drop "require numeric arguments" from pow() docs (GH-137456)
(cherry picked from commit 37b5a0d671685645db8f1d5ecfa1260587f1fc28)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Doc/library/functions.rst

index 4453a083327af48a76a3f9bb036896a1e38d2b8f..d9fb5900e08ee4e4e0ee4eeb297d613c715918a3 100644 (file)
@@ -1565,7 +1565,7 @@ are always available.  They are listed here in alphabetical order.
    ``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is
    equivalent to using the power operator: ``base**exp``.
 
-   The arguments must have numeric types.  With mixed operand types, the
+   When arguments are builtin numeric types with mixed operand types, the
    coercion rules for binary arithmetic operators apply.  For :class:`int`
    operands, the result has the same type as the operands (after coercion)
    unless the second argument is negative; in that case, all arguments are