cpython/Lib/re
Serhiy Storchaka a00464bc33
gh-152100: Move re compiler optimizations to Lib/re/_optimizer.py (GH-152154)
Move the compile-time optimizations (_optimize_charset, _compile_charset,
_simple, _compile_info and the literal/charset prefix helpers) out of
_compiler.py into a new Lib/re/_optimizer.py.  _compiler.py keeps only the
bytecode emitter and imports them.  This is groundwork for a follow-up
optimization; there is no behavior change.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 08:09:56 +00:00
..
__init__.py gh-86519: Add prefixmatch APIs to the re module (GH-31137) 2026-02-15 17:43:39 -08:00
_casefix.py Fix syntax in generate_re_casefix.py (#122699) 2024-08-05 23:16:29 -07:00
_compiler.py gh-152100: Move re compiler optimizations to Lib/re/_optimizer.py (GH-152154) 2026-06-25 08:09:56 +00:00
_constants.py gh-111259: Optimize complementary character sets in RE (GH-120742) 2024-06-20 07:19:32 +00:00
_optimizer.py gh-152100: Move re compiler optimizations to Lib/re/_optimizer.py (GH-152154) 2026-06-25 08:09:56 +00:00
_parser.py gh-152100: Support set operations in character classes (GH-152153) 2026-06-25 10:09:41 +03:00