summaryrefslogtreecommitdiffstats
path: root/Python/codegen.c
diff options
context:
space:
mode:
authorChris Markiewicz <markiewicz@stanford.edu>2025-03-08 03:04:45 (GMT)
committerGitHub <noreply@github.com>2025-03-08 03:04:45 (GMT)
commit72e5b25efb580fb1f0fdfade516be90d90822164 (patch)
tree64dae27e381d598dec62d62d48c6e35d65bc6a94 /Python/codegen.c
parent78790811989ab47319e2ee725e0c435b3cdd21ab (diff)
downloadcpython-72e5b25efb580fb1f0fdfade516be90d90822164.zip
cpython-72e5b25efb580fb1f0fdfade516be90d90822164.tar.gz
cpython-72e5b25efb580fb1f0fdfade516be90d90822164.tar.bz2
gh-128646: Implement GzipFile.readinto[1]() methods (GH-128647)
The new methods simply delegate to the underlying buffer, much like the existing GzipFile.read[1] methods. This avoids extra allocations caused by the BufferedIOBase.readinto implementation previously used. This commit also factors out a common readability check rather than copying it an additional two times.
Diffstat (limited to 'Python/codegen.c')
0 files changed, 0 insertions, 0 deletions