| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:40c01fb9-a4b0-119b-3df6-df4ad4d50dd3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B6FE:31CE75:A70413:DCE22F:69699323 |
| html-safe-nonce | 518feb41cd62b830734f33e328b4c775836584f33ae4d84ab2877866a8ba9383 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkZFOjMxQ0U3NTpBNzA0MTM6RENFMjJGOjY5Njk5MzIzIiwidmlzaXRvcl9pZCI6IjY2NDAxODQ1MzU2MzI0MTc1NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b8cd3c22052d919c32f3dfd4aeb8e2eebf85951f23aa940cca1f56a90233486 |
| hovercard-subject-tag | pull_request:1243564645 |
| 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/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/101949/files |
| twitter:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| og:image:alt | Adapt StringIO, TextIOWrapper, FileIO, Buffered*, and BytesIO types.
Issue: gh-101819
Automerge-Triggered-By: GH:erlend-aasland |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/101949/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101949%2Ffiles |
| 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%2F101949%2Ffiles |
|
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/101949/files |
| Reload | https://github.com/python/cpython/pull/101949/files |
| Reload | https://github.com/python/cpython/pull/101949/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
|
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 |
| miss-islington | https://github.com/miss-islington |
| python:main | https://github.com/python/cpython/tree/main |
| erlend-aasland:isolate-io/1-heap-types | https://github.com/erlend-aasland/cpython/tree/isolate-io/1-heap-types |
|
Conversation
12
| https://github.com/python/cpython/pull/101949 |
|
Commits
20
| https://github.com/python/cpython/pull/101949/commits |
|
Checks
0
| https://github.com/python/cpython/pull/101949/checks |
|
Files changed
| https://github.com/python/cpython/pull/101949/files |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
|
gh-101819: Adapt _io types to heap types, batch 1
| https://github.com/python/cpython/pull/101949/files#top |
|
Show all changes
20 commits
| https://github.com/python/cpython/pull/101949/files |
|
6d0a37b
Add tests
erlend-aasland Feb 12, 2023
| https://github.com/python/cpython/pull/101949/commits/6d0a37b18f696268f64209efce28e6a21b7a2a28 |
|
bd19a20
StringIO type
erlend-aasland Feb 11, 2023
| https://github.com/python/cpython/pull/101949/commits/bd19a20f18e048b368b6077de6964afe93564795 |
|
9af73fe
PyTextIOWrapper type
erlend-aasland Feb 11, 2023
| https://github.com/python/cpython/pull/101949/commits/9af73fea92b88c6dc95fee7df45d41405850e70e |
|
4bd73bd
Move get_io_state() to main header
erlend-aasland Feb 11, 2023
| https://github.com/python/cpython/pull/101949/commits/4bd73bdd2753b40122ff09ff67476c03d785a1cd |
|
8d96a7a
PyFileIO type
erlend-aasland Feb 11, 2023
| https://github.com/python/cpython/pull/101949/commits/8d96a7aabd29f2ef8b643898ff5a969e941d6d67 |
|
97f382f
Buffered* types
erlend-aasland Feb 12, 2023
| https://github.com/python/cpython/pull/101949/commits/97f382f9070cc6b0d6f67bbc8ed67c00432e0797 |
|
eeb5c48
PyBytesIO type
erlend-aasland Feb 12, 2023
| https://github.com/python/cpython/pull/101949/commits/eeb5c48dec9be5de95130a8de9984d3ff9961905 |
|
3c7e203
Remove unneded global state call
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/3c7e20345988ce5be204a9878685ad5a325034c1 |
|
254bfaf
Avoid PyState_FindModule as far as possible for now
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/254bfaf3db42db6000170c3a9fabc0aacb6af2df |
|
b3db018
Fixup clinic_state for module level functions
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/b3db018395ae466fcf81421f0652133976b2590c |
|
0570ae0
Regen clinic
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/0570ae0b0b90f82e7c867d33d7b3d19d71d14253 |
|
c1926a6
Visit and clear heap types at module level
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/c1926a6c249b0bcf9386a96d43c979c825a2a4cf |
|
471ae9f
Fix tests on Windows
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/471ae9fb4d4cd7dd48acf216fdec1dfa16e25cb0 |
|
345ffd3
Pull in main
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/345ffd3555dd9e36592dcd1dd7f5ae5353df75b1 |
|
65c0086
Fix unused variable warning
erlend-aasland Feb 16, 2023
| https://github.com/python/cpython/pull/101949/commits/65c008685d16275c708d2c48f171fa8925e3d2b6 |
|
39e0a89
Merge branch 'main' into isolate-io/1-heap-types
erlend-aasland Feb 17, 2023
| https://github.com/python/cpython/pull/101949/commits/39e0a8939238b88d61c23912886233da08cded50 |
|
86a6dbc
Merge branch 'main' into isolate-io/1-heap-types
kumaraditya303 Feb 19, 2023
| https://github.com/python/cpython/pull/101949/commits/86a6dbcf44c8def4a63de57e16ec2582a70a715e |
|
cf1eb47
Merge branch 'main' into isolate-io/1-heap-types
erlend-aasland Feb 19, 2023
| https://github.com/python/cpython/pull/101949/commits/cf1eb475d7c39b48e748ed6f220c223580d7d4f4 |
|
7e0f327
Pull in main
erlend-aasland Feb 20, 2023
| https://github.com/python/cpython/pull/101949/commits/7e0f32792b707906e8d8bdfff7ffd86ed944e9a1 |
|
cf605e6
Use Py_DEBUG iso. NDEBUG
erlend-aasland Feb 20, 2023
| https://github.com/python/cpython/pull/101949/commits/cf605e60d7bb49179714be2164df83ee82e77d35 |
|
Clear filters
| https://github.com/python/cpython/pull/101949/files |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
|
test_io.py
| https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
|
_iomodule.c
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
_iomodule.h
| https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
bufferedio.c
| https://github.com/python/cpython/pull/101949/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
|
bytesio.c
| https://github.com/python/cpython/pull/101949/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09 |
|
bufferedio.c.h
| https://github.com/python/cpython/pull/101949/files#diff-9b822806a1ab112f6eb4d2f83e35fbbfe20779015bfc9a55aa51c748635ce5a2 |
|
fileio.c
| https://github.com/python/cpython/pull/101949/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322 |
|
stringio.c
| https://github.com/python/cpython/pull/101949/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667 |
|
textio.c
| https://github.com/python/cpython/pull/101949/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3 |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/101949/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
| Lib/test/test_io.py | https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
|
View file
| https://github.com/erlend-aasland/cpython/blob/cf605e60d7bb49179714be2164df83ee82e77d35/Lib/test/test_io.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101949/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
|
| https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
|
| https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
|
| https://github.com/python/cpython/pull/101949/files#diff-c6987f6d27855daad275cfbf05fb3684c53fc82ff7146cd157e5838f9ad5f57f |
| Modules/_io/_iomodule.c | https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
View file
| https://github.com/erlend-aasland/cpython/blob/cf605e60d7bb49179714be2164df83ee82e77d35/Modules/_io/_iomodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101949/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
|
| https://github.com/python/cpython/pull/101949/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253 |
| Modules/_io/_iomodule.h | https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
View file
| https://github.com/erlend-aasland/cpython/blob/cf605e60d7bb49179714be2164df83ee82e77d35/Modules/_io/_iomodule.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101949/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
| https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
| https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
|
| https://github.com/python/cpython/pull/101949/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b |
| Please reload this page | https://github.com/python/cpython/pull/101949/files |
|
| 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 |