mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
A character set containing exactly one category, e.g. [\d] or [^\s], now compiles to a single CATEGORY opcode (like \d or \S) instead of an IN block. The negated form maps to the complementary category. This speeds up matching and reduces the size of the compiled byte code. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _casefix.py | ||
| _compiler.py | ||
| _constants.py | ||
| _parser.py | ||