diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-04-22 19:02:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 19:02:20 (GMT) |
commit | 76ff68666fa946c44d16173ff52a127d3a9785db (patch) | |
tree | 37b978a79e94ef609f4ec560c2b897645b554ba6 /Python/future.c | |
parent | 97d14e1dfb9347bc8ef581055b2f70cd03e5f622 (diff) | |
download | cpython-76ff68666fa946c44d16173ff52a127d3a9785db.zip cpython-76ff68666fa946c44d16173ff52a127d3a9785db.tar.gz cpython-76ff68666fa946c44d16173ff52a127d3a9785db.tar.bz2 |
[3.9] gh-91700: Validate the group number in conditional expression in RE (GH-91702) (GH-91831) (GH-91836)
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.
(cherry picked from commit 48ec61a89a959071206549819448405c2cea61b0)
(cherry picked from commit 080781cd49b13da4a73db87b6f5e0c7aeec83e92)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/future.c')
0 files changed, 0 insertions, 0 deletions