SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

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>
C
Cody Maloney committed
510ab7d6e1284dd2ac453b780fa19b5627bca0e1
Parent: e5b5a15
Committed by GitHub <noreply@github.com> on 1/13/2026, 9:33:26 AM