From: Martin Panter Date: Sun, 12 Jun 2016 06:17:29 +0000 (+0000) Subject: Add grammatical article to “an ASCII letter” X-Git-Tag: v3.6.0a2~26^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98e9051577dd8dca01ccd0df021e8901cbe98965;p=thirdparty%2FPython%2Fcpython.git Add grammatical article to “an ASCII letter” --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 337365c189e4..dfbedd48c9e2 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -321,7 +321,7 @@ The special characters are: The special sequences consist of ``'\'`` and a character from the list below. -If the ordinary character is not ASCII digit or ASCII letter, then the +If the ordinary character is not an ASCII digit or an ASCII letter, then the resulting RE will match the second character. For example, ``\$`` matches the character ``'$'``. @@ -444,7 +444,7 @@ three digits in length. The ``'\u'`` and ``'\U'`` escape sequences have been added. .. versionchanged:: 3.6 - Unknown escapes consisting of ``'\'`` and ASCII letter now are errors. + Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors. .. seealso:: @@ -743,7 +743,7 @@ form. Unmatched groups are replaced with an empty string. .. versionchanged:: 3.6 - Unknown escapes consisting of ``'\'`` and ASCII letter now are errors. + Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors. .. function:: subn(pattern, repl, string, count=0, flags=0) diff --git a/Misc/NEWS b/Misc/NEWS index 551574dd250d..2680d05aec8b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -56,7 +56,7 @@ Library - Issue #27029: Removed deprecated support of universal newlines mode from ZipFile.open(). -- Issue #27030: Unknown escapes consisting of ``'\'`` and ASCII letter in +- Issue #27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in regular expressions now are errors. The re.LOCALE flag now can be used only with bytes patterns.