]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130102: drop "require numeric arguments" from pow() docs (#137456)
authorSergey B Kirpichev <skirpichev@gmail.com>
Thu, 7 Aug 2025 23:43:18 +0000 (02:43 +0300)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 23:43:18 +0000 (23:43 +0000)
Co-authored-by: Senthil Kumaran <senthil@python.org>
Doc/library/functions.rst

index 80bd1275973f8d17f2a1e17cf437653bddf476bd..857b40f3ba155c63162bdf16b98ded1b2989962e 100644 (file)
@@ -1577,7 +1577,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