Sorry, something went wrong.
| or within tokens like ``*?``, ``(?:`` or ``(?P<...>`` (e.g. ``(? :`` or ``* | ||
| ?``). |
There was a problem hiding this comment.
It would be clearer to say something like "For example, (? : and * ? are not allowed."
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the review :)
Fixed as suggested.
Sorry, something went wrong.
|
Thanks @athos-ribeiro for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, something went wrong.
|
Thanks @athos-ribeiro for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @athos-ribeiro for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
GH-97882 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
|
GH-97883 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
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.