Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-152100: Move re compiler optimizations to Lib/re/_optimizer.py
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>
  • Loading branch information
serhiy-storchaka and claude committed Jun 25, 2026
commit 586b2b89605aaa3d9272b19141e9d2ef2d395e57
Loading
Loading