FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-111259: Optimize complementary character sets in RE by serhiy-storchaka · Pull Request #120742 · python/cpython · GitHub

/ cpython Public

gh-111259: Optimize complementary character sets in RE - #120742

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:re-complementary-character-sets
Jun 20, 2024
Merged

gh-111259: Optimize complementary character sets in RE#120742
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:re-complementary-character-sets

Conversation

serhiy-storchaka commented Jun 19, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled to the same effective code as a dot with the DOTALL modifier ("(?s:.)").

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled
to the same effective code as a dot with the DOTALL modifier ("(?s:.)").

Copy link
Copy Markdown
Contributor

Nice, this will speed up usage like this: ^[\s\S]*(?P<sub>[ab]).

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Jun 19, 2024
…ki5PV.rst

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
serhiy-storchaka enabled auto-merge (squash) June 20, 2024 06:58
serhiy-storchaka merged commit 8bc76ae into python:main Jun 20, 2024
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…H-120742)

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled
to the same effective code as a dot with the DOTALL modifier ("(?s:.)").
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…H-120742)

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled
to the same effective code as a dot with the DOTALL modifier ("(?s:.)").
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…H-120742)

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled
to the same effective code as a dot with the DOTALL modifier ("(?s:.)").
serhiy-storchaka deleted the re-complementary-character-sets branch July 1, 2026 16:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL