| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cd6b2674-2ff6-083b-1c58-2a1b6fe1849b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DE3C:34CBCC:EB3057:1425860:6969F758 |
| html-safe-nonce | ef68c92fdac2b320b0b9df4fdf5165179a6dacef8091a3002a2725aafe8f04ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTNDOjM0Q0JDQzpFQjMwNTc6MTQyNTg2MDo2OTY5Rjc1OCIsInZpc2l0b3JfaWQiOiI4NjM4MDQzMDc2NTAxODI5NDY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 01d1baa9a2aa417eb2711d57355d14ecc2886021d008b4e685b938b59d2db9ce |
| hovercard-subject-tag | pull_request:812181370 |
| 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/30310/files |
| twitter:image | https://avatars.githubusercontent.com/u/28633680?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28633680?s=400&v=4 |
| og:image:alt | Add _at_fork_reinit handler to buffer->lock of stdout and stderr, to fix a deadlock in print.
https://bugs.python.org/issue46210 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/30310/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30310%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%2F30310%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/30310/files |
| Reload | https://github.com/python/cpython/pull/30310/files |
| Reload | https://github.com/python/cpython/pull/30310/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/30310/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/30310/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 |
| notarealdeveloper | https://github.com/notarealdeveloper |
| python:main | https://github.com/python/cpython/tree/main |
|
Conversation
54
| https://github.com/python/cpython/pull/30310 |
|
Commits
15
| https://github.com/python/cpython/pull/30310/commits |
|
Checks
0
| https://github.com/python/cpython/pull/30310/checks |
|
Files changed
| https://github.com/python/cpython/pull/30310/files |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
|
bpo-46210: Fix deadlock in print.
| https://github.com/python/cpython/pull/30310/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/30310/files |
|
dc5d787
Fix deadlock in print.
notarealdeveloper Dec 30, 2021
| https://github.com/python/cpython/pull/30310/commits/dc5d78702499dfc7d5d81f4522cbbd5d12b9ac25 |
|
46d4ce6
Add Misc/NEWS.d entry.
notarealdeveloper Dec 30, 2021
| https://github.com/python/cpython/pull/30310/commits/46d4ce68808e81c87279611a446c0584d9576f60 |
|
3409181
Only add _at_fork_reinit if fork is available.
notarealdeveloper Dec 31, 2021
| https://github.com/python/cpython/pull/30310/commits/3409181c10363050dd0d5f59c52bd9dc306df912 |
|
19f19b7
Use Py_RETURN_* in Modules/_io/bufferedio.c:buffered_at_fork_reinit
notarealdeveloper Dec 31, 2021
| https://github.com/python/cpython/pull/30310/commits/19f19b7dec9a07c99ddae9f1f746f7c79977ffc8 |
|
f5334b4
Fix up reference counting in Python/pystate.c:stdio_at_fork_reinit
notarealdeveloper Dec 31, 2021
| https://github.com/python/cpython/pull/30310/commits/f5334b40cea86a978715c7f13f7d31de97a7d1dc |
|
3858006
Formatting for PEP 7.
notarealdeveloper Jan 5, 2022
| https://github.com/python/cpython/pull/30310/commits/385800657009ababd9d17b798da4b8a92b9a43b4 |
|
fb0bd16
Add _PySys_ReInitStdio to Python/sysmodule.c
notarealdeveloper Jan 5, 2022
| https://github.com/python/cpython/pull/30310/commits/fb0bd1645042e85139df4f92ca8636e682b78ffa |
|
8c8d9c9
Call _PySys_ReInitStdio in PyOS_AfterFork_Child.
notarealdeveloper Jan 5, 2022
| https://github.com/python/cpython/pull/30310/commits/8c8d9c9997184caff123be37bb19c4a009ef811b |
|
a14bf74
Avoid adding a new python method.
notarealdeveloper Jan 24, 2022
| https://github.com/python/cpython/pull/30310/commits/a14bf74dcdc4a779ec8cc2e6dd4585988a292415 |
|
be40192
Add TestStdioAtForkReInit to test_thread.py
notarealdeveloper Jan 24, 2022
| https://github.com/python/cpython/pull/30310/commits/be40192b8ba06a8865c8704d44d6b108bb1eb669 |
|
bf9b398
Move INCREF in _PyIO_buffered_at_fork_reinit
notarealdeveloper Feb 7, 2022
| https://github.com/python/cpython/pull/30310/commits/bf9b39889f108901811c51a7805e4032e55bf44b |
|
5681a02
Remove unused variable in stdio_at_fork_reinit
notarealdeveloper Feb 7, 2022
| https://github.com/python/cpython/pull/30310/commits/5681a021fb92a8fa886a758bab98f219ee8c16ba |
|
2054bfa
Correct buffer->lock reinit logic.
notarealdeveloper Feb 8, 2022
| https://github.com/python/cpython/pull/30310/commits/2054bfad3c5688341a28254834d93f8b9785e510 |
|
a8e4185
Merge remote-tracking branch 'upstream/main' into print
notarealdeveloper Feb 17, 2022
| https://github.com/python/cpython/pull/30310/commits/a8e41854c86412879f175caf9de11bc6df9b7c73 |
|
56a405f
stream_at_fork_reinit now uses _Py_ID instead of _Py_Identifier.
notarealdeveloper Feb 17, 2022
| https://github.com/python/cpython/pull/30310/commits/56a405f8bcc5ba74129f61d42ddad9b798df21c9 |
|
Clear filters
| https://github.com/python/cpython/pull/30310/files |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
|
pycore_sysmodule.h
| https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa |
|
test_thread.py
| https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679 |
|
2021-12-30-15-50-39.bpo-46210.YRy67_.rst
| https://github.com/python/cpython/pull/30310/files#diff-3decb248a7c2cbfd2303af630da155539274d9562bd5bcd3c61fe1007e501edd |
|
bufferedio.c
| https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
|
posixmodule.c
| https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
sysmodule.c
| https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L243 |
| Include/internal/pycore_sysmodule.h | https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Include/internal/pycore_sysmodule.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa |
|
| https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa |
| Lib/test/test_thread.py | https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679 |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Lib/test/test_thread.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679 |
|
| https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679 |
| vstinner | https://github.com/vstinner |
| Feb 7, 2022 | https://github.com/python/cpython/pull/30310/files#r801112144 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Feb 9, 2022 | https://github.com/python/cpython/pull/30310/files#r802245128 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| notarealdeveloper | https://github.com/notarealdeveloper |
| Feb 14, 2022 | https://github.com/python/cpython/pull/30310/files#r806028470 |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @vstinner | https://github.com/vstinner |
| @JelleZijlstra | https://github.com/JelleZijlstra |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| Misc/NEWS.d/next/Core and Builtins/2021-12-30-15-50-39.bpo-46210.YRy67_.rst | https://github.com/python/cpython/pull/30310/files#diff-3decb248a7c2cbfd2303af630da155539274d9562bd5bcd3c61fe1007e501edd |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Misc/NEWS.d/next/Core%20and%20Builtins/2021-12-30-15-50-39.bpo-46210.YRy67_.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
| Modules/_io/bufferedio.c | https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Modules/_io/bufferedio.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
|
| https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a |
| Modules/posixmodule.c | https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Modules/posixmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L243 |
| Python/sysmodule.c | https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb |
|
View file
| https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Python/sysmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30310/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb |
| vstinner | https://github.com/vstinner |
| Feb 7, 2022 | https://github.com/python/cpython/pull/30310/files#r801113217 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
| notarealdeveloper | https://github.com/notarealdeveloper |
| Feb 14, 2022 | https://github.com/python/cpython/pull/30310/files#r806033768 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/30310/files |
|
| https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb |
|
| 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 |