| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…class pythonGH-152245 lifted the restriction that a negated multi-range property could not appear inside a character class, and added assertions in test_property_escapes showing that [\P{ASCII}] and friends now match. It left in place an earlier comment in the same test saying that, unlike an engine category, \P of a multi-range property cannot be negated inside a character class. The distinction that remains is how the member is compiled, not whether it is allowed: an engine category joins the set directly as a CATEGORY, while a multi-range \P is alternated in as a separate branch.
| Back | FazBrowse Home | New Git URL |
The comment above the [\P{Alphabetic}] assertion in test_property_escapes still says that, unlike an engine category, \P of a multi-range property cannot be negated inside a character class. GH-152245 lifted that restriction, and the same test now asserts fifty lines below that [\P{ASCII}], [\P{ASCII}abc] and [^\P{ASCII}] all match. The comment now states the distinction that does remain, which is how the member is compiled rather than whether it is allowed:
Comment-only change in a test file, so there is no news entry.