diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-10-14 06:13:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 06:13:02 (GMT) |
commit | e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d (patch) | |
tree | 3ab33a7a92325e48c5297ba9c3f4d8d9c38d3d00 /Misc | |
parent | ca0f3d858d069231ce7c5b382790a774f385b467 (diff) | |
download | cpython-e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d.zip cpython-e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d.tar.gz cpython-e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d.tar.bz2 |
gh-109747: Improve errors for unsupported look-behind patterns (GH-109859)
Now re.error is raised instead of OverflowError or RuntimeError for
too large width of look-behind pattern.
The limit is increased to 2**32-1 (was 2**31-1).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-09-25-20-05-41.gh-issue-109747._cRJH8.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-09-25-20-05-41.gh-issue-109747._cRJH8.rst b/Misc/NEWS.d/next/Library/2023-09-25-20-05-41.gh-issue-109747._cRJH8.rst new file mode 100644 index 0000000..b64ba62 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-09-25-20-05-41.gh-issue-109747._cRJH8.rst @@ -0,0 +1,3 @@ +Improve errors for unsupported look-behind patterns. Now re.error is raised +instead of OverflowError or RuntimeError for too large width of look-behind +pattern. |