summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2019-06-02 09:24:06 (GMT)
committerGitHub <noreply@github.com>2019-06-02 09:24:06 (GMT)
commitc52996785a45d4693857ea219e040777a14584f8 (patch)
treeee1d54ea597b45ef0d57407f8affaffe57f93be6 /Doc/whatsnew
parent5ae299ac78abb628803ab7dee0997364547f5cc8 (diff)
downloadcpython-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.rst6
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
===========