]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132108: Add Buffer Protocol support to int.from_bytes to improve performance ...
authorCody Maloney <cmaloney@users.noreply.github.com>
Tue, 13 Jan 2026 09:33:26 +0000 (01:33 -0800)
committerGitHub <noreply@github.com>
Tue, 13 Jan 2026 09:33:26 +0000 (10:33 +0100)
commit510ab7d6e1284dd2ac453b780fa19b5627bca0e1
tree8a0c2299381e3abd28f60f7e1693c7c142ad0dba
parente5b5a1580411fb9587af8974db68f0857033ba14
gh-132108: Add Buffer Protocol support to int.from_bytes to improve performance (#132109)

Speed up conversion from `bytes-like` objects like `bytearray` while
keeping conversion from `bytes` stable.

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Core_and_Builtins/2025-04-04-20-38-29.gh-issue-132108.UwZIQy.rst [new file with mode: 0644]
Objects/longobject.c