René's URL Explorer Experiment


Title: GH-116738: document thread-safety of bisect by nascheme · Pull Request #136555 · python/cpython · GitHub

Open Graph Title: GH-116738: document thread-safety of bisect by nascheme · Pull Request #136555 · python/cpython

X Title: GH-116738: document thread-safety of bisect by nascheme · Pull Request #136555 · python/cpython

Description: I don't think it makes sense to make these functions thread-safe. They are already unsafe when used in the default build. And, given that they can operate on any sequence object, trying to lock the sequence object doesn't make sense. I added a unit test because I believe these functions should not crash or produce TSAN warnings when they are used on a sequence being mutated in another thread. Issue: gh-116738 📚 Documentation preview 📚: https://cpython-previews--136555.org.readthedocs.build/

Open Graph Description: I don't think it makes sense to make these functions thread-safe. They are already unsafe when used in the default build. And, given that they can operate on any sequence object, trying to lo...

X Description: I don't think it makes sense to make these functions thread-safe. They are already unsafe when used in the default build. And, given that they can operate on any sequence object, trying t...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:03baea52-9a66-db6f-58df-e22bc53efd03
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idA94C:309720:1CD8882:279870F:696ABDA7
html-safe-nonce2478c42526e452652a038331cbc541b63edc4d512ba0f8000a46e0e4e77a78ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTRDOjMwOTcyMDoxQ0Q4ODgyOjI3OTg3MEY6Njk2QUJEQTciLCJ2aXNpdG9yX2lkIjoiMTU2NjI0OTk5MDUwMzQ0Nzk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7365df46768970a8e1f9231e5adfafdd611248704ad978f41ad394ae02b44c4b
hovercard-subject-tagpull_request:2659939958
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/136555/checks
twitter:imagehttps://avatars.githubusercontent.com/u/690853?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/690853?s=400&v=4
og:image:altI don't think it makes sense to make these functions thread-safe. They are already unsafe when used in the default build. And, given that they can operate on any sequence object, trying to lo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
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 full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/136555/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136555%2Fchecks
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%2F136555%2Fchecks
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%2Fchecks&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/136555/checks
Reloadhttps://github.com/python/cpython/pull/136555/checks
Reloadhttps://github.com/python/cpython/pull/136555/checks
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136555/checks
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/136555/checks
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
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:gh-116738-bisect-threadsafe-dochttps://github.com/nascheme/cpython/tree/gh-116738-bisect-threadsafe-doc
Conversation 9 https://github.com/python/cpython/pull/136555
Commits 7 https://github.com/python/cpython/pull/136555/commits
Checks 43 https://github.com/python/cpython/pull/136555/checks
Files changed https://github.com/python/cpython/pull/136555/files
Please reload this pagehttps://github.com/python/cpython/pull/136555/checks
Please reload this pagehttps://github.com/python/cpython/pull/136555/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136555%2Fchecks
GH-116738: document thread-safety of bisect https://github.com/python/cpython/pull/136555/checks#top
Please reload this pagehttps://github.com/python/cpython/pull/136555/checks
Lint on: pull_request https://github.com/python/cpython/actions/runs/16611858521
lint https://github.com/python/cpython/actions/runs/16611858521/job/46996321574?pr=136555
Tests on: pull_request https://github.com/python/cpython/actions/runs/16611858530
Change detection / Create context from changed files https://github.com/python/cpython/actions/runs/16611858530/job/46996321522?pr=136555
Docs / Docs https://github.com/python/cpython/actions/runs/16611858530/job/46996331209?pr=136555
Docs / Doctest https://github.com/python/cpython/actions/runs/16611858530/job/46996331213?pr=136555
Check if Autoconf files are up to date https://github.com/python/cpython/actions/runs/16611858530/job/46996330819?pr=136555
Check if generated files are up to date https://github.com/python/cpython/actions/runs/16611858530/job/46996330860?pr=136555
Windows / Build and test (x64) https://github.com/python/cpython/actions/runs/16611858530/job/46996331081?pr=136555
Windows (free-threading) / Build and test (x64) https://github.com/python/cpython/actions/runs/16611858530/job/46996331091?pr=136555
Windows / Build and test (Win32) https://github.com/python/cpython/actions/runs/16611858530/job/46996331090?pr=136555
Windows / Build and test (arm64) https://github.com/python/cpython/actions/runs/16611858530/job/46996331089?pr=136555
Windows (free-threading) / Build and test (arm64) https://github.com/python/cpython/actions/runs/16611858530/job/46996331099?pr=136555
Windows MSI${{ '' }} https://github.com/python/cpython/actions/runs/16611858530/job/46996331008?pr=136555
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma) https://github.com/python/cpython/actions/runs/16611858530/job/46996331143?pr=136555
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma) https://github.com/python/cpython/actions/runs/16611858530/job/46996331105?pr=136555
macOS / build and test (macos-13) https://github.com/python/cpython/actions/runs/16611858530/job/46996331101?pr=136555
Ubuntu / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/16611858530/job/46996331112?pr=136555
Ubuntu / build and test (ubuntu-24.04-arm) https://github.com/python/cpython/actions/runs/16611858530/job/46996331121?pr=136555
Ubuntu (free-threading) / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/16611858530/job/46996331118?pr=136555
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm) https://github.com/python/cpython/actions/runs/16611858530/job/46996331187?pr=136555
Ubuntu (bolt) / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/16611858530/job/46996331153?pr=136555
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.0.16) https://github.com/python/cpython/actions/runs/16611858530/job/46996330872?pr=136555
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.1.8) https://github.com/python/cpython/actions/runs/16611858530/job/46996330888?pr=136555
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.2.4) https://github.com/python/cpython/actions/runs/16611858530/job/46996330886?pr=136555
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.3.3) https://github.com/python/cpython/actions/runs/16611858530/job/46996330895?pr=136555
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.4.1) https://github.com/python/cpython/actions/runs/16611858530/job/46996330905?pr=136555
Ubuntu SSL tests with AWS-LC (ubuntu-24.04, 1.55.0) https://github.com/python/cpython/actions/runs/16611858530/job/46996330900?pr=136555
WASI / build and test https://github.com/python/cpython/actions/runs/16611858530/job/46996331019?pr=136555
Hypothesis tests on Ubuntu https://github.com/python/cpython/actions/runs/16611858530/job/46996330852?pr=136555
Address sanitizer (ubuntu-24.04) https://github.com/python/cpython/actions/runs/16611858530/job/46996330878?pr=136555
Sanitizers / TSan https://github.com/python/cpython/actions/runs/16611858530/job/46996331175?pr=136555
Sanitizers / TSan (free-threading) https://github.com/python/cpython/actions/runs/16611858530/job/46996331176?pr=136555
Sanitizers / UBSan https://github.com/python/cpython/actions/runs/16611858530/job/46996331190?pr=136555
Cross build Linux https://github.com/python/cpython/actions/runs/16611858530/job/46996330853?pr=136555
CIFuzz https://github.com/python/cpython/actions/runs/16611858530/job/46996330999?pr=136555
All required checks pass https://github.com/python/cpython/actions/runs/16611858530/job/46997239028?pr=136555
Check labels on: pull_request https://github.com/python/cpython/actions/runs/16611858535
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/16611858535/job/46996321433?pr=136555
Unresolved review https://github.com/python/cpython/actions/runs/16611858535/job/46996321431?pr=136555
Check labels on: pull_request https://github.com/python/cpython/actions/runs/16612176182
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/16612176182/job/46997246519?pr=136555
Unresolved review https://github.com/python/cpython/actions/runs/16612176182/job/46997246518?pr=136555
Check labels on: pull_request https://github.com/python/cpython/actions/runs/16612179554
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/16612179554/job/46997256100?pr=136555
Unresolved review https://github.com/python/cpython/actions/runs/16612179554/job/46997256104?pr=136555
Check labels on: pull_request https://github.com/python/cpython/actions/runs/16612181019
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/16612181019/job/46997260084?pr=136555
Unresolved review https://github.com/python/cpython/actions/runs/16612181019/job/46997260072?pr=136555
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.