Serhiy Storchaka
48ec61a89a
gh-91700: Validate the group number in conditional expression in RE (GH-91702)
...
In expression (?(group)...) an appropriate re.error is now
raised if the group number refers to not defined group.
Previously it raised RuntimeError: invalid SRE code.
2022-04-22 19:53:10 +03:00
Serhiy Storchaka
6ccfa31421
gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)
...
re.error is now raised instead of TypeError.
2022-04-22 18:35:28 +03:00
Serhiy Storchaka
50872dbadc
bpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333)
2022-04-06 19:54:44 +03:00
Serhiy Storchaka
b09184bf05
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
...
They were undocumented and never working.
2022-04-06 19:53:50 +03:00
Serhiy Storchaka
1be3260a90
bpo-47152: Convert the re module into a package (GH-32177)
...
The sre_* modules are now deprecated.
2022-04-02 11:35:13 +03:00