From: Sergey B Kirpichev Date: Thu, 7 Aug 2025 23:43:18 +0000 (+0300) Subject: gh-130102: drop "require numeric arguments" from pow() docs (#137456) X-Git-Tag: v3.15.0a1~741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37b5a0d671685645db8f1d5ecfa1260587f1fc28;p=thirdparty%2FPython%2Fcpython.git gh-130102: drop "require numeric arguments" from pow() docs (#137456) Co-authored-by: Senthil Kumaran --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 80bd1275973f..857b40f3ba15 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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