René's URL Explorer Experiment


Title: gh-142518: add thread safety docs on bytes C-API by kumaraditya303 · Pull Request #146415 · python/cpython · GitHub

Open Graph Title: gh-142518: add thread safety docs on bytes C-API by kumaraditya303 · Pull Request #146415 · python/cpython

X Title: gh-142518: add thread safety docs on bytes C-API by kumaraditya303 · Pull Request #146415 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: Document guarantees provided when sharing built-in types across threads #142518 📚 Documentation preview 📚: https://cpython-previews--146415.org.readthedocs.build/

X Description: Issue: Document guarantees provided when sharing built-in types across threads #142518 📚 Documentation preview 📚: https://cpython-previews--146415.org.readthedocs.build/

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:b98cbac5-b5ef-e2a8-eba1-81eb1c367b8f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idACC0:2A7C1C:175C7A8:1EE0492:6B0206BA
html-safe-nonce47269a879c1ebc50636ec1c92899403bb6042f7acb8c3660f3bb31d344db792b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0MwOjJBN0MxQzoxNzVDN0E4OjFFRTA0OTI6NkIwMjA2QkEiLCJ2aXNpdG9yX2lkIjoiNDM4OTU1NDA5MDIyMjU2ODI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac209f1d3934bfafc3cfc8426ee53ceaec25b373637b6da1d7f96eae9a2534e0c7
hovercard-subject-tagpull_request:3444838031
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/146415/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f93cb069210ef71ba3a9d0b72abea646a5081665089f73a0f14e4bb7d55912dc/python/cpython/pull/146415
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f93cb069210ef71ba3a9d0b72abea646a5081665089f73a0f14e4bb7d55912dc/python/cpython/pull/146415
og:image:altIssue: Document guarantees provided when sharing built-in types across threads #142518 📚 Documentation preview 📚: https://cpython-previews--146415.org.readthedocs.build/
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/146415#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146415
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146415
Sign uphttps://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/146415
Reloadhttps://github.com/python/cpython/pull/146415
Reloadhttps://github.com/python/cpython/pull/146415
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:byteshttps://github.com/kumaraditya303/cpython/tree/bytes
Conversationhttps://github.com/python/cpython/pull/146415
Commits5 (5)https://github.com/python/cpython/pull/146415/commits
Checkshttps://github.com/python/cpython/pull/146415/checks
Files changedhttps://github.com/python/cpython/pull/146415/files
gh-142518: add thread safety docs on bytes C-APIhttps://github.com/python/cpython/pull/146415#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:byteshttps://github.com/kumaraditya303/cpython/tree/bytes
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Mar 25, 2026https://github.com/python/cpython/pull/146415#issue-4134959858
Please reload this pagehttps://github.com/python/cpython/pull/146415
Document guarantees provided when sharing built-in types across threads #142518https://github.com/python/cpython/issues/142518
https://cpython-previews--146415.org.readthedocs.build/https://cpython-previews--146415.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/kumaraditya303
add thread safety docs on bytes C-APIhttps://github.com/python/cpython/pull/146415/commits/bd588246659bffc3621c9b68752d28c6c5e094af
bd58824https://github.com/python/cpython/pull/146415/commits/bd588246659bffc3621c9b68752d28c6c5e094af
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
ZeroIntensityhttps://github.com/ZeroIntensity
code ownerhttps://github.com/python/cpython/blob/4240c7dd7499c9024bae73a31fb25697203ae615/.github/CODEOWNERS#L114
March 25, 2026 12:13https://github.com/python/cpython/pull/146415#event-23888544247
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 25, 2026 https://github.com/python/cpython/pull/146415#ref-issue-3715591669
Document guarantees provided when sharing built-in types across threads #142518 https://github.com/python/cpython/issues/142518
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
Mar 25, 2026https://github.com/python/cpython/pull/146415#event-23888548110
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 25, 2026https://github.com/python/cpython/pull/146415#event-23888570505
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
encukouhttps://github.com/encukou
March 25, 2026 12:17https://github.com/python/cpython/pull/146415#event-23888709886
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 25, 2026 https://github.com/python/cpython/pull/146415#pullrequestreview-4010401488
View reviewed changes https://github.com/python/cpython/pull/146415/files/bd588246659bffc3621c9b68752d28c6c5e094af
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/146415#pullrequestreview-4010401488
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://datatracker.ietf.org/doc/html/rfc2119https://datatracker.ietf.org/doc/html/rfc2119
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/kumaraditya303
should -> musthttps://github.com/python/cpython/pull/146415/commits/8c1f5ab9fdec7f5ad8611cb58e71db1d757197a0
8c1f5abhttps://github.com/python/cpython/pull/146415/commits/8c1f5ab9fdec7f5ad8611cb58e71db1d757197a0
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Mar 26, 2026https://github.com/python/cpython/pull/146415#issuecomment-4134181523
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
vstinnerhttps://github.com/vstinner
March 26, 2026 12:17https://github.com/python/cpython/pull/146415#event-23930705369
https://github.com/kumaraditya303
Merge branch 'main' into byteshttps://github.com/python/cpython/pull/146415/commits/8755cf8f05938c4e338c096f81384b38e9f972fd
8755cf8https://github.com/python/cpython/pull/146415/commits/8755cf8f05938c4e338c096f81384b38e9f972fd
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 27, 2026 https://github.com/python/cpython/pull/146415#pullrequestreview-4020898877
View reviewed changes https://github.com/python/cpython/pull/146415/files/8755cf8f05938c4e338c096f81384b38e9f972fd
Doc/data/threadsafety.dathttps://github.com/python/cpython/pull/146415/files/8755cf8f05938c4e338c096f81384b38e9f972fd#diff-a72a0b870eaf979b5d101fa32bb614360f8071f08d3fcc95d0ccc2e05b9a4a21
Please reload this pagehttps://github.com/python/cpython/pull/146415
kumaraditya303https://github.com/kumaraditya303
March 27, 2026 18:17https://github.com/python/cpython/pull/146415#commits-pushed-84f391d
https://github.com/kumaraditya303
fix PyBytes_FromFormat commenthttps://github.com/python/cpython/pull/146415/commits/84f391d9c36d7e135c93fd68294c17b5cba0695a
84f391dhttps://github.com/python/cpython/pull/146415/commits/84f391d9c36d7e135c93fd68294c17b5cba0695a
https://github.com/kumaraditya303
split into twohttps://github.com/python/cpython/pull/146415/commits/d8ed27b1dcad6b06286affed9fd831b0638b2b07
d8ed27bhttps://github.com/python/cpython/pull/146415/commits/d8ed27b1dcad6b06286affed9fd831b0638b2b07
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Mar 27, 2026https://github.com/python/cpython/pull/146415#issuecomment-4142394486
Please reload this pagehttps://github.com/python/cpython/pull/146415
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 27, 2026 https://github.com/python/cpython/pull/146415#pullrequestreview-4021007738
View reviewed changes https://github.com/python/cpython/pull/146415/files/d8ed27b1dcad6b06286affed9fd831b0638b2b07
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/146415#pullrequestreview-4021007738
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/146415
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
Mar 27, 2026https://github.com/python/cpython/pull/146415#event-23971334166
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
6a94980https://github.com/python/cpython/commit/6a94980301b880b7ac1178efd31d14f031f690f5
Mar 27, 2026https://github.com/python/cpython/pull/146415#event-23971392987
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
March 27, 2026 13:01https://github.com/python/cpython/pull/146415#event-23971394511
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
Mar 27, 2026https://github.com/python/cpython/pull/146415#event-23971394580
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Mar 27, 2026https://github.com/python/cpython/pull/146415#event-23971401565
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Mar 27, 2026https://github.com/python/cpython/pull/146415#issuecomment-4142431634
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/146415
miss-islingtonhttps://github.com/miss-islington
Mar 27, 2026 https://github.com/python/cpython/pull/146415#ref-commit-15a2b18
https://github.com/kumaraditya303
https://github.com/miss-islington
pythongh-142518https://github.com/python/cpython/issues/142518
: add thread safety docs on bytes C-API (https://github.com/miss-islington/cpython/commit/15a2b18661de73a9b0e57a5e9011ccaae2b48213
pythonGH-146415https://github.com/python/cpython/pull/146415
)https://github.com/miss-islington/cpython/commit/15a2b18661de73a9b0e57a5e9011ccaae2b48213
15a2b18https://github.com/miss-islington/cpython/commit/15a2b18661de73a9b0e57a5e9011ccaae2b48213
6a94980https://github.com/miss-islington/cpython/commit/6a94980301b880b7ac1178efd31d14f031f690f5
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 27, 2026https://github.com/python/cpython/pull/146415#issuecomment-4142432792
GH-146515https://github.com/python/cpython/pull/146515
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Mar 27, 2026https://github.com/python/cpython/pull/146415#event-23971409193
kumaraditya303https://github.com/kumaraditya303
Mar 27, 2026 https://github.com/python/cpython/pull/146415#ref-commit-67862fc
https://github.com/miss-islington
https://github.com/kumaraditya303
[3.14]https://github.com/python/cpython/commit/67862fc75e6cf991af757b5184602bbaeac97cae
gh-142518https://github.com/python/cpython/issues/142518
: add thread safety docs on bytes C-API (https://github.com/python/cpython/commit/67862fc75e6cf991af757b5184602bbaeac97cae
GH-146415https://github.com/python/cpython/pull/146415
) (https://github.com/python/cpython/commit/67862fc75e6cf991af757b5184602bbaeac97cae
#…https://github.com/python/cpython/pull/146515
67862fchttps://github.com/python/cpython/commit/67862fc75e6cf991af757b5184602bbaeac97cae
…146515https://github.com/python/cpython/pull/146515
gh-142518https://github.com/python/cpython/issues/142518
GH-146415https://github.com/python/cpython/pull/146415
6a94980https://github.com/python/cpython/commit/6a94980301b880b7ac1178efd31d14f031f690f5
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Mar 29, 2026https://github.com/python/cpython/pull/146415#event-24006079464
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 4, 2026 https://github.com/python/cpython/pull/146415#ref-pullrequest-3716338400
gh-130273: Fix traceback color output with unicode characters #142529 https://github.com/python/cpython/pull/142529
clin1234https://github.com/clin1234
Apr 16, 2026 https://github.com/python/cpython/pull/146415#ref-commit-19820cf
https://github.com/kumaraditya303
https://github.com/clin1234
pythongh-142518https://github.com/python/cpython/issues/142518
: add thread safety docs on bytes C-API (https://github.com/clin1234/cpython/commit/19820cff88f30aae5c7293d2b1ed5505337cebf5
python#146415https://github.com/python/cpython/pull/146415
)https://github.com/clin1234/cpython/commit/19820cff88f30aae5c7293d2b1ed5505337cebf5
19820cfhttps://github.com/clin1234/cpython/commit/19820cff88f30aae5c7293d2b1ed5505337cebf5
ljfphttps://github.com/ljfp
Apr 25, 2026 https://github.com/python/cpython/pull/146415#ref-commit-1e64a09
https://github.com/kumaraditya303
https://github.com/ljfp
pythongh-142518https://github.com/python/cpython/issues/142518
: add thread safety docs on bytes C-API (https://github.com/ljfp/cpython/commit/1e64a0984ddb8590c2a44ce56df5892b6336592f
python#146415https://github.com/python/cpython/pull/146415
)https://github.com/ljfp/cpython/commit/1e64a0984ddb8590c2a44ce56df5892b6336592f
1e64a09https://github.com/ljfp/cpython/commit/1e64a0984ddb8590c2a44ce56df5892b6336592f
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F146415
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/146415/files/d8ed27b1dcad6b06286affed9fd831b0638b2b07
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/encukou
encukou https://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/146415
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Please reload this pagehttps://github.com/python/cpython/pull/146415
https://github.com/kumaraditya303
https://github.com/vstinner
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.