[Python-checkins] bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4395)

Serhiy Storchaka webhook-mailer at python.org
Tue Nov 14 10:39:06 EST 2017


https://github.com/python/cpython/commit/a2f1be0b5ba2bed49b7f94c026b541ff07e52518
commit: a2f1be0b5ba2bed49b7f94c026b541ff07e52518
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017-11-14T17:39:04+02:00
summary:

bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4395)

(cherry picked from commit b0b44b4b3337297007f5ef87220a75df204399f8)

files:
M Doc/library/re.rst

diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index d0798b78f2e..22340818e26 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -532,7 +532,8 @@ form.
    This flag allows you to write regular expressions that look nicer and are
    more readable by allowing you to visually separate logical sections of the
    pattern and add comments. Whitespace within the pattern is ignored, except
-   when in a character class or when preceded by an unescaped backslash.
+   when in a character class, or when preceded by an unescaped backslash,
+   or within tokens like ``*?``, ``(?:`` or ``(?P<...>``.
    When a line contains a ``#`` that is not in a character class and is not
    preceded by an unescaped backslash, all characters from the leftmost such
    ``#`` through the end of the line are ignored.



More information about the Python-checkins mailing list