]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141968: Use take_bytes in re._compiler (#141995)
authorCody Maloney <cmaloney@users.noreply.github.com>
Fri, 28 Nov 2025 17:46:10 +0000 (09:46 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Nov 2025 17:46:10 +0000 (17:46 +0000)
commit3001464248edfba76fc23d4a8107dc24f2807d46
tree2e45d42e5d6afdaa2bdcfd3a7295ac21e828d57a
parent5ec03cf3b086fd01614cbd97bb99d45aac3668fe
gh-141968: Use take_bytes in re._compiler (#141995)

Removes a copy going from bytearray to bytes.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/re/_compiler.py
Misc/NEWS.d/next/Library/2025-11-26-14-20-10.gh-issue-141968.W139Pv.rst [new file with mode: 0644]