diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2019-06-02 09:24:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-02 09:24:06 (GMT) |
commit | c52996785a45d4693857ea219e040777a14584f8 (patch) | |
tree | ee1d54ea597b45ef0d57407f8affaffe57f93be6 /Doc/whatsnew | |
parent | 5ae299ac78abb628803ab7dee0997364547f5cc8 (diff) | |
download | cpython-c52996785a45d4693857ea219e040777a14584f8.zip cpython-c52996785a45d4693857ea219e040777a14584f8.tar.gz cpython-c52996785a45d4693857ea219e040777a14584f8.tar.bz2 |
bpo-36027: Extend three-argument pow to negative second argument (GH-13266)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.8.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 591b454..74d0079 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -304,6 +304,12 @@ Other Language Changes * Added new ``replace()`` method to the code type (:class:`types.CodeType`). (Contributed by Victor Stinner in :issue:`37032`.) +* For integers, the three-argument form of the :func:`pow` function now permits + the exponent to be negative in the case where the base is relatively prime to + the modulus. It then computes a modular inverse to the base when the exponent + is ``-1``, and a suitable power of that inverse for other negative exponents. + (Contributed by Mark Dickinson in :issue:`36027`.) + New Modules =========== |