René's URL Explorer Experiment


Title: Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef. by colesbury · Pull Request #159 · python/pythoncapi-compat · GitHub

Open Graph Title: Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef. by colesbury · Pull Request #159 · python/pythoncapi-compat

X Title: Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef. by colesbury · Pull Request #159 · python/pythoncapi-compat

Description: These would be useful in PyTorch, which uses pythoncapi-compat.h. They are also already used in pybind11, which doesn't use pythoncapi-compat.h.

Open Graph Description: These would be useful in PyTorch, which uses pythoncapi-compat.h. They are also already used in pybind11, which doesn't use pythoncapi-compat.h.

X Description: These would be useful in PyTorch, which uses pythoncapi-compat.h. They are also already used in pybind11, which doesn't use pythoncapi-compat.h.

Opengraph URL: https://github.com/python/pythoncapi-compat/pull/159

X: @github

direct link

Domain: patch-diff.githubusercontent.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:a8bd68df-dd8f-e632-ad3e-8277dd805d80
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD538:2B5F45:1623FEA:1D8BB48:697D2047
html-safe-noncea6e7889d6b531cd162035e5a5f58bb8ff949177b6b56db4056fc96480332415f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM4OjJCNUY0NToxNjIzRkVBOjFEOEJCNDg6Njk3RDIwNDciLCJ2aXNpdG9yX2lkIjoiMjk0NTQyMDk3OTE3MTMwMzQ5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace7e3fb00d3cca7b6c4862ac5dba3ff127ea14638537ba631da15b0cc1c326082
hovercard-subject-tagpull_request:2977558809
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/pythoncapi-compat/159/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/65259236437aa48e47d756166065258608f8899e512534d8390888278852bcf3/python/pythoncapi-compat/pull/159
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/65259236437aa48e47d756166065258608f8899e512534d8390888278852bcf3/python/pythoncapi-compat/pull/159
og:image:altThese would be useful in PyTorch, which uses pythoncapi-compat.h. They are also already used in pybind11, which doesn't use pythoncapi-compat.h.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecolesbury
hostnamegithub.com
expected-hostnamegithub.com
None2d5649ae937eae7f63d31fc38497f18a9f7584ad9d7f9e934a7b64b964ed52fd
turbo-cache-controlno-preview
go-importgithub.com/python/pythoncapi-compat git https://github.com/python/pythoncapi-compat.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id269418584
octolytics-dimension-repository_nwopython/pythoncapi-compat
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id269418584
octolytics-dimension-repository_network_root_nwopython/pythoncapi-compat
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
release87312954ce93e22874ec34d319d96d539f0beba0
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpythoncapi-compat%2Fpull%2F159
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpythoncapi-compat%2Fpull%2F159
Sign up https://patch-diff.githubusercontent.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%2Fpythoncapi-compat
Reloadhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
Reloadhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
Reloadhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
python https://patch-diff.githubusercontent.com/python
pythoncapi-compathttps://patch-diff.githubusercontent.com/python/pythoncapi-compat
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fpythoncapi-compat
Fork 38 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fpythoncapi-compat
Star 100 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fpythoncapi-compat
Code https://patch-diff.githubusercontent.com/python/pythoncapi-compat
Issues 1 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/issues
Pull requests 0 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pulls
Actions https://patch-diff.githubusercontent.com/python/pythoncapi-compat/actions
Projects 0 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/projects
Security 0 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/security
Insights https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pulse
Code https://patch-diff.githubusercontent.com/python/pythoncapi-compat
Issues https://patch-diff.githubusercontent.com/python/pythoncapi-compat/issues
Pull requests https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pulls
Actions https://patch-diff.githubusercontent.com/python/pythoncapi-compat/actions
Projects https://patch-diff.githubusercontent.com/python/pythoncapi-compat/projects
Security https://patch-diff.githubusercontent.com/python/pythoncapi-compat/security
Insights https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython%2Fpythoncapi-compat%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fpythoncapi-compat%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#issue-comment-box
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
python:mainhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/tree/main
colesbury:try_increfhttps://patch-diff.githubusercontent.com/colesbury/pythoncapi-compat/tree/try_incref
Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef. https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#top
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
python:mainhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/tree/main
colesbury:try_increfhttps://patch-diff.githubusercontent.com/colesbury/pythoncapi-compat/tree/try_incref
Conversation 9 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
Commits 4 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits
Checks 36 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/checks
Files changed https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/colesbury
colesburyhttps://patch-diff.githubusercontent.com/colesbury
Nov 4, 2025https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#issue-3587639445
pybind11https://github.com/pybind/pybind11/blob/e6984c805ec09c0e5f826e3081a32f322a6bfe63/include/pybind11/detail/type_caster_base.h#L292-L333
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/colesbury
Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef.https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/b09013757e71295ffeed5250e4607b2c1056c38a
b090137https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/b09013757e71295ffeed5250e4607b2c1056c38a
https://patch-diff.githubusercontent.com/vstinner
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#pullrequestreview-3423804104
View reviewed changes https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a
pythoncapi_compat.hhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
tests/test_pythoncapi_compat_cext.chttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-35d7a40ba0c92dfc39d93e0f7a7ed4b404e9ab7ac23f06d4725af8741b7c6d12
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#discussion_r2495736594
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
pythoncapi_compat.hhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
pythoncapi_compat.hhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
pythoncapi_compat.hhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
pythoncapi_compat.hhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/vstinner
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#issuecomment-3492859865
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
colesburyhttps://patch-diff.githubusercontent.com/colesbury
November 5, 2025 16:44https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#commits-pushed-6240ab3
https://patch-diff.githubusercontent.com/colesbury
https://patch-diff.githubusercontent.com/vstinner
Apply suggestions from code reviewhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/6240ab3b9ad4e34eed1cfda0fe3a35441364bfc1
6240ab3https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/6240ab3b9ad4e34eed1cfda0fe3a35441364bfc1
https://patch-diff.githubusercontent.com/colesbury
Rename MyType to TryIncrefTypehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/ac639f69d9750164acf42d7562a29b2c9f6a3664
ac639f6https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/ac639f69d9750164acf42d7562a29b2c9f6a3664
https://patch-diff.githubusercontent.com/colesbury
colesburyhttps://patch-diff.githubusercontent.com/colesbury
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
November 5, 2025 21:46https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#event-20742301327
https://patch-diff.githubusercontent.com/vstinner
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025 https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#pullrequestreview-3424598282
View reviewed changes https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664
tests/test_pythoncapi_compat_cext.chttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664#diff-35d7a40ba0c92dfc39d93e0f7a7ed4b404e9ab7ac23f06d4725af8741b7c6d12
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#discussion_r2496293774
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/colesbury
Rename MyObject to TryIncrefhttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/6d697809fc9f80e49d7fde93109a78a8e6848afc
6d69780https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/commits/6d697809fc9f80e49d7fde93109a78a8e6848afc
https://patch-diff.githubusercontent.com/vstinner
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
c44469chttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/commit/c44469cc02bc857de286f9043b677d545c2030b7
Nov 5, 2025https://github.com/python/pythoncapi-compat/pull/159#event-20742633780
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/vstinner
vstinnerhttps://patch-diff.githubusercontent.com/vstinner
Nov 5, 2025https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#issuecomment-3493748486
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/colesbury
colesburyhttps://patch-diff.githubusercontent.com/colesbury
November 5, 2025 22:08https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159#event-20742655980
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpythoncapi-compat%2Fpull%2F159
https://patch-diff.githubusercontent.com/vstinner
vstinner https://patch-diff.githubusercontent.com/vstinner
https://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664
Please reload this pagehttps://patch-diff.githubusercontent.com/python/pythoncapi-compat/pull/159
https://patch-diff.githubusercontent.com/colesbury
https://patch-diff.githubusercontent.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.