summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorlrjball <50599110+lrjball@users.noreply.github.com>2020-04-30 03:42:45 (GMT)
committerGitHub <noreply@github.com>2020-04-30 03:42:45 (GMT)
commit3209cbd99b6d65aa18b3beb124fac9c792b8993d (patch)
treefafcfaccc30732b2e50094ad967940ef1e66c401 /Doc
parent6900f16d2207ca4fc252fa9d778ca0b13a3c95e0 (diff)
downloadcpython-3209cbd99b6d65aa18b3beb124fac9c792b8993d.zip
cpython-3209cbd99b6d65aa18b3beb124fac9c792b8993d.tar.gz
cpython-3209cbd99b6d65aa18b3beb124fac9c792b8993d.tar.bz2
bpo-40394 - difflib.SequenceMatched.find_longest_match default args (GH-19742)
* bpo-40394 - difflib.SequenceMatched.find_longest_match default args Added default args to find_longest_match, as well as related tests.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/difflib.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
index ada311b..7a898c2 100644
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -421,7 +421,7 @@ The :class:`SequenceMatcher` class has this constructor:
is not changed.
- .. method:: find_longest_match(alo, ahi, blo, bhi)
+ .. method:: find_longest_match(alo=0, ahi=None, blo=0, bhi=None)
Find longest matching block in ``a[alo:ahi]`` and ``b[blo:bhi]``.
@@ -458,6 +458,9 @@ The :class:`SequenceMatcher` class has this constructor:
This method returns a :term:`named tuple` ``Match(a, b, size)``.
+ .. versionchanged:: 3.9
+ Added default arguments.
+
.. method:: get_matching_blocks()