You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8eb6fb0
Browse filesBrowse the repository at this point in the historyBrowse files
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 <[email protected]>
# A negated multi-range property (one not backed by an engine
1076
-
# category) cannot be a set member.
1077
-
self.checkPatternError(r'[\P{ASCII}]',
1078
-
r'bad escape \P in character class', 1)
1079
1088
1080
1089
deftest_word_boundaries(self):
1081
1090
# See http://bugs.python.org/issue10713
0 commit comments