diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-03-22 09:44:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 09:44:47 (GMT) |
commit | c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3 (patch) | |
tree | e1443085b290766bc1aa68e95aae302ffbd03728 /Lib | |
parent | 4f97d64c831c94660ceb01f34d51fa236ad968b0 (diff) | |
download | cpython-c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3.zip cpython-c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3.tar.gz cpython-c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3.tar.bz2 |
bpo-47081: Replace "qualifiers" with "quantifiers" in the re module documentation (GH-32028)
It is a more commonly used term.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_re.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index bde7509..da827ca 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -2038,9 +2038,9 @@ class ReTests(unittest.TestCase): with self.assertRaisesRegex(TypeError, "got 'type'"): re.search("x*", type) - def test_possessive_qualifiers(self): - """Test Possessive Qualifiers - Test qualifiers of the form @+ for some repetition operator @, + def test_possessive_quantifiers(self): + """Test Possessive Quantifiers + Test quantifiers of the form @+ for some repetition operator @, e.g. x{3,5}+ meaning match from 3 to 5 greadily and proceed without creating a stack frame for rolling the stack back and trying 1 or more fewer matches.""" @@ -2077,7 +2077,7 @@ class ReTests(unittest.TestCase): self.assertIsNone(re.match("^x{}+$", "xxx")) self.assertTrue(re.match("^x{}+$", "x{}")) - def test_fullmatch_possessive_qualifiers(self): + def test_fullmatch_possessive_quantifiers(self): self.assertTrue(re.fullmatch(r'a++', 'a')) self.assertTrue(re.fullmatch(r'a*+', 'a')) self.assertTrue(re.fullmatch(r'a?+', 'a')) @@ -2096,7 +2096,7 @@ class ReTests(unittest.TestCase): self.assertIsNone(re.fullmatch(r'(?:ab)?+', 'abc')) self.assertIsNone(re.fullmatch(r'(?:ab){1,3}+', 'abc')) - def test_findall_possessive_qualifiers(self): + def test_findall_possessive_quantifiers(self): self.assertEqual(re.findall(r'a++', 'aab'), ['aa']) self.assertEqual(re.findall(r'a*+', 'aab'), ['aa', '', '']) self.assertEqual(re.findall(r'a?+', 'aab'), ['a', 'a', '', '']) |