mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-130102: drop "require numeric arguments" from pow() docs (#137456)
Co-authored-by: Senthil Kumaran <senthil@python.org>
This commit is contained in:
parent
350c58ba4e
commit
37b5a0d671
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue