René's URL Explorer Experiment


Title: [3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) by methane · Pull Request #120314 · python/cpython · GitHub

Open Graph Title: [3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) by methane · Pull Request #120314 · python/cpython

X Title: [3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) by methane · Pull Request #120314 · python/cpython

Description: This PR is backport of #119507 This PR fixes TextIOWrapper's inner buffer breakage. The bug caused assertion error when Python debug build. I am not sure it can cause crash on release build. The bu...

Open Graph Description: This PR is backport of #119507 This PR fixes TextIOWrapper's inner buffer breakage. The bug caused assertion error when Python debug build. I am not sure it can cause crash on release build. Th...

X Description: This PR is backport of #119507 This PR fixes TextIOWrapper's inner buffer breakage. The bug caused assertion error when Python debug build. I am not sure it can cause crash on release build...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d84472a8-53de-f9e7-3e06-1205e119512c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA45A:275F42:2C0CA8C:3B5DB4F:696AEE04
html-safe-nonce6f03d6914f083229f17f6fc72ca2f040f8232b6f05ae5271364d7012e23f8dc3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDVBOjI3NUY0MjoyQzBDQThDOjNCNURCNEY6Njk2QUVFMDQiLCJ2aXNpdG9yX2lkIjoiODQzNDM3ODMwODYwMDkxNzUwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2f3d75900453769da05ead5dc364fdb8bb24728d80b61493e00d8dd8e2ce608e
hovercard-subject-tagpull_request:1911912935
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/120314/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/77b56f671290255dfce7b3ca7f49c797284272547c9a6aff24f433c03f87f772/python/cpython/pull/120314
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/77b56f671290255dfce7b3ca7f49c797284272547c9a6aff24f433c03f87f772/python/cpython/pull/120314
og:image:altThis PR is backport of #119507 This PR fixes TextIOWrapper's inner buffer breakage. The bug caused assertion error when Python debug build. I am not sure it can cause crash on release build. Th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemethane
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/120314#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120314
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%2F120314
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/120314
Reloadhttps://github.com/python/cpython/pull/120314
Reloadhttps://github.com/python/cpython/pull/120314
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/120314
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/120314
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
Jump to bottomhttps://github.com/python/cpython/pull/120314#issue-comment-box
hugovkhttps://github.com/hugovk
python:3.11https://github.com/python/cpython/tree/3.11
methane:3.11-fix-textiohttps://github.com/methane/cpython/tree/3.11-fix-textio
[3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) https://github.com/python/cpython/pull/120314#top
hugovkhttps://github.com/hugovk
python:3.11https://github.com/python/cpython/tree/3.11
methane:3.11-fix-textiohttps://github.com/methane/cpython/tree/3.11-fix-textio
Conversation 4 https://github.com/python/cpython/pull/120314
Commits 2 https://github.com/python/cpython/pull/120314/commits
Checks 1 https://github.com/python/cpython/pull/120314/checks
Files changed 3 https://github.com/python/cpython/pull/120314/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/methane
methanehttps://github.com/methane
Jun 10, 2024https://github.com/python/cpython/pull/120314#issue-2343564164
Please reload this pagehttps://github.com/python/cpython/pull/120314
#119507https://github.com/python/cpython/pull/119507
_io.TextIOWrapper.write: write during flush causes pending_bytes length mismatch #119506https://github.com/python/cpython/issues/119506
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/methane
pythongh-119506https://github.com/python/cpython/issues/119506
: fix _io.TextIOWrapper.write() write during flush (https://github.com/python/cpython/pull/120314/commits/703c1e7fc6ce1c064c6ff460e3015fc01beb1f77
py…https://github.com/python/cpython/pull/119507
703c1e7https://github.com/python/cpython/pull/120314/commits/703c1e7fc6ce1c064c6ff460e3015fc01beb1f77
…thon#119507https://github.com/python/cpython/pull/119507
https://github.com/methane
methanehttps://github.com/methane
3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.11
3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.10
3.9 (EOL) https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20%28EOL%29%22
3.8 (EOL) https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20%28EOL%29%22
Jun 10, 2024https://github.com/python/cpython/pull/120314#event-13099314057
_io.TextIOWrapper.write: write during flush causes pending_bytes length mismatch #119506 https://github.com/python/cpython/issues/119506
gh-119506: fix _io.TextIOWrapper.write() write during flush #119507 https://github.com/python/cpython/pull/119507
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 10, 2024https://github.com/python/cpython/pull/120314#event-13099315547
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Aug 9, 2024https://github.com/python/cpython/pull/120314#issuecomment-2278059090
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/hugovk
hugovkhttps://github.com/hugovk
pending https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Apending
Aug 9, 2024https://github.com/python/cpython/pull/120314#event-13821641049
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Aug 9, 2024https://github.com/python/cpython/pull/120314#issuecomment-2278080533
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Aug 9, 2024 https://github.com/python/cpython/pull/120314#pullrequestreview-2230351043
View reviewed changes https://github.com/python/cpython/pull/120314/files/c497e26c04706a85493bb9634732ed90dd5c023f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 9, 2024https://github.com/python/cpython/pull/120314#event-13821772807
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
Aug 9, 2024https://github.com/python/cpython/pull/120314#issuecomment-2278349079
@pablogsalhttps://github.com/pablogsal
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Aug 9, 2024https://github.com/python/cpython/pull/120314#issuecomment-2278353754
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/hugovk
Merge branch '3.11' into 3.11-fix-textiohttps://github.com/python/cpython/pull/120314/commits/c497e26c04706a85493bb9634732ed90dd5c023f
c497e26https://github.com/python/cpython/pull/120314/commits/c497e26c04706a85493bb9634732ed90dd5c023f
https://github.com/hugovk
hugovkhttps://github.com/hugovk
August 9, 2024 17:03https://github.com/python/cpython/pull/120314#event-13823551744
https://github.com/hugovk
hugovkhttps://github.com/hugovk
8a978a7https://github.com/python/cpython/commit/8a978a75c2d1e6d081e8f89a240e356be10c7714
Aug 9, 2024https://github.com/python/cpython/pull/120314#event-13823564608
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 9, 2024https://github.com/python/cpython/pull/120314#event-13823565206
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
pending https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Apending
Apr 6, 2025https://github.com/python/cpython/pull/120314#event-17142122336
https://github.com/methane
methanehttps://github.com/methane
April 28, 2025 03:10https://github.com/python/cpython/pull/120314#event-17426305657
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120314
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/120314/files/c497e26c04706a85493bb9634732ed90dd5c023f
3.8 (EOL) https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20%28EOL%29%22
3.9 (EOL) https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20%28EOL%29%22
3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.10
3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.11
Please reload this pagehttps://github.com/python/cpython/pull/120314
https://github.com/methane
https://github.com/hugovk
https://github.com/pablogsal
https://github.com/terryjreedy
https://github.com/AA-Turner
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.