https://github.com/python/cpython/commit/99c1d09016ad11b56133c1f4a7c99589cd3d6f72 commit: 99c1d09016ad11b56133c1f4a7c99589cd3d6f72 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: AA-Turner <[email protected]> date: 2025-10-07T19:25:25+01:00 summary:
[3.14] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (#137536) gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (cherry picked from commit 37b5a0d671685645db8f1d5ecfa1260587f1fc28) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Senthil Kumaran <[email protected]> files: M Doc/library/functions.rst diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index f28c1a5ad4a326..d25a6efd003c8e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1580,7 +1580,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
