cpython/Lib/re
Serhiy Storchaka 8eb6fb0294
gh-95555: Allow a negated property as a character set member (GH-152245)
A negated multi-range property such as \P{ASCII} or \P{Pattern_Syntax} was
rejected inside a character class.  Such members are now alternated in with
the other members: [\P{ASCII}abc] becomes [abc] | [^ASCII], and [\P{ASCII}]
alone is just the negated charset.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 14:15:12 +03: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: Fuse set-operation character classes into a single charset (GH-152214) 2026-06-26 14:12:46 +03:00
_constants.py gh-95555: Support Unicode property escapes \p{...} in regular expressions (GH-151969) 2026-06-26 07:33:33 +03:00
_optimizer.py gh-152100: Fuse set-operation character classes into a single charset (GH-152214) 2026-06-26 14:12:46 +03:00
_parser.py gh-95555: Allow a negated property as a character set member (GH-152245) 2026-06-26 14:15:12 +03:00
_properties.py gh-95555: Support Unicode property escapes \p{...} in regular expressions (GH-151969) 2026-06-26 07:33:33 +03:00