| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:746e336d-1425-249d-7015-575d4cf80f57 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 98C6:13D32A:1097E12:1612AE4:6994FED5 |
| html-safe-nonce | 6c98b0f58d347a1b0503c002cff86f8867ded8d62952f3fe07a380cc2ff9a5ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEM2OjEzRDMyQToxMDk3RTEyOjE2MTJBRTQ6Njk5NEZFRDUiLCJ2aXNpdG9yX2lkIjoiMjY2MzAyNDk0NjcyNTU4NDU5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afe71a72696613187198defcadb01ab6cd04b27c1a745541568bf836e9e991eb |
| hovercard-subject-tag | pull_request:3008404893 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
| twitter:image | https://avatars.githubusercontent.com/u/751088?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/751088?s=400&v=4 |
| og:image:alt | If the underlying I/O class keeps a reference to the memory raise BufferError.
Uses gh-139871 to implement.
--
If want to maintain closer compatibility when a BufferError occurs can fall back to a ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2616d2b216d6e9d52f595f6aaf832bb7a377b236 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141532%2Fcommits%2Fbfb0c712e69acb8da3586857a17ef606a3515cb8 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141532%2Fcommits%2Fbfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
| Reload | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
| Reload | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.5k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| cmaloney:gh60107_take_bytes | https://github.com/cmaloney/cpython/tree/gh60107_take_bytes |
|
Conversation
8
| https://github.com/python/cpython/pull/141532 |
|
Commits
12
| https://github.com/python/cpython/pull/141532/commits |
|
Checks
44
| https://github.com/python/cpython/pull/141532/checks |
|
Files changed
| https://github.com/python/cpython/pull/141532/files |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
gh-60107: Remove a copy from RawIOBase.read
| https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/141532/files |
|
f904fce
gh-60107: Remove a copy from RawIOBase.read
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/f904fce197da9010cfc87e89ac97bc0e2b0667d5 |
|
6c9d14e
Add missing res = NULL
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/6c9d14e44f6e99958ccfc0a1cf30e90e9960682e |
|
847c7ed
Better place for test. Remove excess newlines. Remove old TODO
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/847c7edf860d1d37fdb91f1755f586ecef1a1dda |
|
bfb0c71
Fix indentation
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
3709cf9
Simplify with Py_CLEAR
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/3709cf92198e8fe8be15e538655e868662f79fb9 |
|
63ceed7
Simplify with gotos
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/63ceed7fae8257af9e5946663537180227c94c79 |
|
a1daaae
Fix ubsan
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/a1daaae26094a76e390fa7e09601c1ad905cd853 |
|
13abb41
Just use the C API... Sorry for the onoise...
cmaloney Nov 13, 2025
| https://github.com/python/cpython/pull/141532/commits/13abb41682e00ec66bdd2eba7c9d2a768f899028 |
|
7dc7e92
Merge branch 'main' into gh60107_take_bytes
cmaloney Nov 15, 2025
| https://github.com/python/cpython/pull/141532/commits/7dc7e9253e9145c691957090d7a3a39a8308801b |
|
82643f8
Update Modules/_io/iobase.c
cmaloney Nov 18, 2025
| https://github.com/python/cpython/pull/141532/commits/82643f8dd25704d3e2eb429cd88f60c92298e9a5 |
|
a9a1f14
Regen globals and simplify more
cmaloney Nov 18, 2025
| https://github.com/python/cpython/pull/141532/commits/a9a1f14ddebd9110a9fbf7e693ceb6c8d5fdc0f8 |
|
8ca1cef
Update Misc/NEWS.d/next/Library/2025-11-13-13-11-02.gh-issue-60107.LZ…
vstinner Nov 20, 2025
| https://github.com/python/cpython/pull/141532/commits/8ca1cef2dbbd3ae2de2ec62fd77d61349871f90d |
|
Clear filters
| https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
Prev
| https://github.com/python/cpython/pull/141532/commits/847c7edf860d1d37fdb91f1755f586ecef1a1dda |
|
Next
| https://github.com/python/cpython/pull/141532/commits/3709cf92198e8fe8be15e538655e868662f79fb9 |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
| https://github.com/cmaloney |
| cmaloney | https://github.com/python/cpython/commits?author=cmaloney |
| Modules/_io/iobase.c | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8#diff-ff67b9b1e4944ed1b8750a6c53db460f2f8e98f073177e64a32e990844520e90 |
|
View file
| https://github.com/cmaloney/cpython/blob/bfb0c712e69acb8da3586857a17ef606a3515cb8/Modules/_io/iobase.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/141532/commits/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8#diff-ff67b9b1e4944ed1b8750a6c53db460f2f8e98f073177e64a32e990844520e90 |
|
| https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8#diff-ff67b9b1e4944ed1b8750a6c53db460f2f8e98f073177e64a32e990844520e90 |
| Please reload this page | https://github.com/python/cpython/pull/141532/commits/bfb0c712e69acb8da3586857a17ef606a3515cb8 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |