]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71679: Share the repr implementation between bytes and bytearray (GH-138181)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 Sep 2025 08:10:29 +0000 (11:10 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Sep 2025 08:10:29 +0000 (11:10 +0300)
commita1cf6e92b64062c5a2c15ab4e12d7586d0e2b5fd
treea51831425cc242975034c63195b474af7d7ece3d
parentcf9ef73121cd2b96dd514e09b3ad253d841d91dd
gh-71679: Share the repr implementation between bytes and bytearray (GH-138181)

This allows to use the smart quotes algorithm in the bytearray's repr.
Include/internal/pycore_bytes_methods.h
Lib/test/test_bytes.py
Misc/NEWS.d/next/Core_and_Builtins/2025-08-27-13-11-47.gh-issue-71679.V0yFeT.rst [new file with mode: 0644]
Objects/bytearrayobject.c
Objects/bytesobject.c