cpython/Modules/_sre
Miss Islington (bot) 7e7e88f674
[3.13] gh-156444: Fix a negated character set with IGNORECASE and LOCALE (GH-156445) (GH-156458)
charset_loc_ignore() tested the whole set once per locale case and took
the disjunction, which complements a set before closing it under case
instead of after: [bc] matched b'B', but so did [^bc].  Match both cases
of the character against every set member instead.
(cherry picked from commit 6671d27327)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 11:40:52 +00:00
..
clinic [3.13] gh-67877: Fix memory leaks in terminated RE matching (GH-126840) (GH-126960) 2024-11-18 11:26:45 +00:00
sre.c [3.13] gh-150319: Replace all documentation which says "See PEP 585" (#150325) (#150814) 2026-06-02 22:26:33 +00:00
sre.h [3.13] gh-67877: Fix memory leaks in terminated RE matching (GH-126840) (GH-126960) 2024-11-18 11:26:45 +00:00
sre_constants.h gh-105687: Remove deprecated objects from re module (#105688) 2023-06-14 12:26:20 +02:00
sre_lib.h [3.13] gh-156444: Fix a negated character set with IGNORECASE and LOCALE (GH-156445) (GH-156458) 2026-08-27 11:40:52 +00:00
sre_targets.h