René's URL Explorer Experiment


Title: gh-101819: Prepare to modernize the _io extension by vstinner · Pull Request #104178 · python/cpython · GitHub

Open Graph Title: gh-101819: Prepare to modernize the _io extension by vstinner · Pull Request #104178 · python/cpython

X Title: gh-101819: Prepare to modernize the _io extension by vstinner · Pull Request #104178 · python/cpython

Description: Add references to static types to _PyIO_State: PyBufferedIOBase_Type PyBytesIOBuffer_Type PyIncrementalNewlineDecoder_Type PyRawIOBase_Type PyTextIOBase_Type Add the defining class to methods: _io.BytesIO.getbuffer() _io.FileIO.close() Add get_io_state_by_cls() function. Add state parameter to _textiowrapper_decode() io_TextIOWrapper___init_() now sets self->state before calling _textiowrapper_set_decoder(). Issue: gh-101819

Open Graph Description: Add references to static types to _PyIO_State: PyBufferedIOBase_Type PyBytesIOBuffer_Type PyIncrementalNewlineDecoder_Type PyRawIOBase_Type PyTextIOBase_Type Add the defining class to methods: ...

X Description: Add references to static types to _PyIO_State: PyBufferedIOBase_Type PyBytesIOBuffer_Type PyIncrementalNewlineDecoder_Type PyRawIOBase_Type PyTextIOBase_Type Add the defining class to methods: ...

Opengraph URL: https://github.com/python/cpython/pull/104178

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:efee373c-e47e-ca50-7f94-81bc0f36e5f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB87E:2ECB0B:87ED7E:C3D27F:696A0EA5
html-safe-nonce696c0a8cdeff184f991ade262bc45218132ef22c7d0697b58c84227fad099c61
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODdFOjJFQ0IwQjo4N0VEN0U6QzNEMjdGOjY5NkEwRUE1IiwidmlzaXRvcl9pZCI6IjE5ODMxODY0OTE5NzMxNzY5OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacceb009cb67d23b6dc8c84cdde3e2359d05e6532eb8760b3ae398001041b9a648
hovercard-subject-tagpull_request:1338789051
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/104178/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altAdd references to static types to _PyIO_State: PyBufferedIOBase_Type PyBytesIOBuffer_Type PyIncrementalNewlineDecoder_Type PyRawIOBase_Type PyTextIOBase_Type Add the defining class to methods: ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/104178/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104178%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F104178%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
Reloadhttps://github.com/python/cpython/pull/104178/files
Reloadhttps://github.com/python/cpython/pull/104178/files
Reloadhttps://github.com/python/cpython/pull/104178/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/104178/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 pagehttps://github.com/python/cpython/pull/104178/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:io_preparehttps://github.com/vstinner/cpython/tree/io_prepare
Conversation 16 https://github.com/python/cpython/pull/104178
Commits 1 https://github.com/python/cpython/pull/104178/commits
Checks 0 https://github.com/python/cpython/pull/104178/checks
Files changed https://github.com/python/cpython/pull/104178/files
Please reload this pagehttps://github.com/python/cpython/pull/104178/files
gh-101819: Prepare to modernize the _io extension https://github.com/python/cpython/pull/104178/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/104178/files
dfc1e9e gh-101819: Prepare to modernize the _io extension vstinner May 4, 2023 https://github.com/python/cpython/pull/104178/commits/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05
Clear filters https://github.com/python/cpython/pull/104178/files
Please reload this pagehttps://github.com/python/cpython/pull/104178/files
Please reload this pagehttps://github.com/python/cpython/pull/104178/files
_iomodule.c https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
_iomodule.h https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
bufferedio.c https://github.com/python/cpython/pull/104178/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
bytesio.c https://github.com/python/cpython/pull/104178/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
bytesio.c.h https://github.com/python/cpython/pull/104178/files#diff-911b08697dbf4065002832267252cc88474bf15e45fbe5d8464fcdf1ae566f86
fileio.c.h https://github.com/python/cpython/pull/104178/files#diff-90571a578dbf3bb5aba9c2494a25ce814df19756021994026e28558d1083df0d
fileio.c https://github.com/python/cpython/pull/104178/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322
stringio.c https://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
textio.c https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
Modules/_io/_iomodule.chttps://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/_iomodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
https://github.com/python/cpython/pull/104178/files#diff-0501b143a2f566e8a760abc20a88fd2533b1f230e5322831f400a0263b8c0253
Modules/_io/_iomodule.hhttps://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/_iomodule.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
https://github.com/python/cpython/pull/104178/files#diff-5316ec91b4e6cbcf680b208755cf8e7efce11e2a6682efb569ade29d6465a55b
Modules/_io/bufferedio.chttps://github.com/python/cpython/pull/104178/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/bufferedio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/104178/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
Modules/_io/bytesio.chttps://github.com/python/cpython/pull/104178/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/bytesio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
https://github.com/python/cpython/pull/104178/files#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
Modules/_io/clinic/bytesio.c.hhttps://github.com/python/cpython/pull/104178/files#diff-911b08697dbf4065002832267252cc88474bf15e45fbe5d8464fcdf1ae566f86
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/clinic/bytesio.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/104178/files
Modules/_io/clinic/fileio.c.hhttps://github.com/python/cpython/pull/104178/files#diff-90571a578dbf3bb5aba9c2494a25ce814df19756021994026e28558d1083df0d
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/clinic/fileio.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/104178/files
Modules/_io/fileio.chttps://github.com/python/cpython/pull/104178/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/fileio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322
https://github.com/python/cpython/pull/104178/files#diff-0e6b2d89502ce959c45fa74328f04a45c2e0a23c12a1e1e15dad754e96463322
Modules/_io/stringio.chttps://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/stringio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
https://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
https://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
https://github.com/python/cpython/pull/104178/files#diff-216e14277a43aeac4f2fcbb183e3898c54abbd90bc8e822e9e7460bc2af69667
Modules/_io/textio.chttps://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
View file https://github.com/vstinner/cpython/blob/dfc1e9e905ff45ef01de35d3adb3a8bbee71fd05/Modules/_io/textio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/104178/{{ revealButtonHref }}
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/104178/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.