◐ Shell
clean mode source ↗

Add re.VERBOSE flag documentation example by athos-ribeiro · Pull Request #97678 · python/cpython

JelleZijlstra

The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Oct 5, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Oct 5, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>

miss-islington added a commit that referenced this pull request

Oct 5, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>

miss-islington added a commit that referenced this pull request

Oct 5, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>

carljm added a commit to carljm/cpython that referenced this pull request

Oct 6, 2022

mpage pushed a commit to mpage/cpython that referenced this pull request

Oct 11, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.

pablogsal pushed a commit that referenced this pull request

Oct 22, 2022
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>