| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:e0caac5d-27c5-5380-7b0e-487c82a38bb0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A0CA:36DBB6:F55EA2:158A298:696A3F03 |
| html-safe-nonce | dc78394fce0630ecaf64f890fcc8203fa9a9e8fff8e9ef3d7ab9a99344d69db7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMENBOjM2REJCNjpGNTVFQTI6MTU4QTI5ODo2OTZBM0YwMyIsInZpc2l0b3JfaWQiOiI2NTY3NTE3NzI2MjUzMzk5ODExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f7ea5df5c23f1978a09b42c55d57daf654745903ce7c947e55b87e784086b976 |
| hovercard-subject-tag | pull_request:2977558809 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/pythoncapi-compat/159/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/65259236437aa48e47d756166065258608f8899e512534d8390888278852bcf3/python/pythoncapi-compat/pull/159 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65259236437aa48e47d756166065258608f8899e512534d8390888278852bcf3/python/pythoncapi-compat/pull/159 |
| og:image:alt | 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. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/pythoncapi-compat git https://github.com/python/pythoncapi-compat.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 269418584 |
| octolytics-dimension-repository_nwo | python/pythoncapi-compat |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 269418584 |
| octolytics-dimension-repository_network_root_nwo | python/pythoncapi-compat |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/pythoncapi-compat/pull/159#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpythoncapi-compat%2Fpull%2F159 |
| 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%2Fpythoncapi-compat%2Fpull%2F159 |
|
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%2Fpythoncapi-compat |
| Reload | https://github.com/python/pythoncapi-compat/pull/159 |
| Reload | https://github.com/python/pythoncapi-compat/pull/159 |
| Reload | https://github.com/python/pythoncapi-compat/pull/159 |
|
python
| https://github.com/python |
| pythoncapi-compat | https://github.com/python/pythoncapi-compat |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fpythoncapi-compat |
|
Fork
38
| https://github.com/login?return_to=%2Fpython%2Fpythoncapi-compat |
|
Star
99
| https://github.com/login?return_to=%2Fpython%2Fpythoncapi-compat |
|
Code
| https://github.com/python/pythoncapi-compat |
|
Issues
1
| https://github.com/python/pythoncapi-compat/issues |
|
Pull requests
0
| https://github.com/python/pythoncapi-compat/pulls |
|
Actions
| https://github.com/python/pythoncapi-compat/actions |
|
Projects
0
| https://github.com/python/pythoncapi-compat/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/pythoncapi-compat/security |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
|
Insights
| https://github.com/python/pythoncapi-compat/pulse |
|
Code
| https://github.com/python/pythoncapi-compat |
|
Issues
| https://github.com/python/pythoncapi-compat/issues |
|
Pull requests
| https://github.com/python/pythoncapi-compat/pulls |
|
Actions
| https://github.com/python/pythoncapi-compat/actions |
|
Projects
| https://github.com/python/pythoncapi-compat/projects |
|
Security
| https://github.com/python/pythoncapi-compat/security |
|
Insights
| https://github.com/python/pythoncapi-compat/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fpythoncapi-compat%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%2Fpythoncapi-compat%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/python/pythoncapi-compat/pull/159#issue-comment-box |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/pythoncapi-compat/tree/main |
| colesbury:try_incref | https://github.com/colesbury/pythoncapi-compat/tree/try_incref |
|
Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef.
| https://github.com/python/pythoncapi-compat/pull/159#top |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/pythoncapi-compat/tree/main |
| colesbury:try_incref | https://github.com/colesbury/pythoncapi-compat/tree/try_incref |
|
Conversation
9
| https://github.com/python/pythoncapi-compat/pull/159 |
|
Commits
4
| https://github.com/python/pythoncapi-compat/pull/159/commits |
|
Checks
36
| https://github.com/python/pythoncapi-compat/pull/159/checks |
|
Files changed
| https://github.com/python/pythoncapi-compat/pull/159/files |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| https://github.co/hiddenchars |
| https://github.com/python/pythoncapi-compat/pull/{{ revealButtonHref }} |
|
| https://github.com/colesbury |
| colesbury | https://github.com/colesbury |
| Nov 4, 2025 | https://github.com/python/pythoncapi-compat/pull/159#issue-3587639445 |
| pybind11 | https://github.com/pybind/pybind11/blob/e6984c805ec09c0e5f826e3081a32f322a6bfe63/include/pybind11/detail/type_caster_base.h#L292-L333 |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
|
| https://github.com/colesbury |
| Add PyUnstable_TryIncref and PyUnstable_EnableTryIncRef. | https://github.com/python/pythoncapi-compat/pull/159/commits/b09013757e71295ffeed5250e4607b2c1056c38a |
| b090137 | https://github.com/python/pythoncapi-compat/pull/159/commits/b09013757e71295ffeed5250e4607b2c1056c38a |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Nov 5, 2025
| https://github.com/python/pythoncapi-compat/pull/159#pullrequestreview-3423804104 |
|
View reviewed changes
| https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a |
| pythoncapi_compat.h | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| tests/test_pythoncapi_compat_cext.c | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-35d7a40ba0c92dfc39d93e0f7a7ed4b404e9ab7ac23f06d4725af8741b7c6d12 |
| vstinner | https://github.com/vstinner |
| Nov 5, 2025 | https://github.com/python/pythoncapi-compat/pull/159#discussion_r2495736594 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| pythoncapi_compat.h | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| pythoncapi_compat.h | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| pythoncapi_compat.h | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| pythoncapi_compat.h | https://github.com/python/pythoncapi-compat/pull/159/files/b09013757e71295ffeed5250e4607b2c1056c38a#diff-0ed658094dc1d83cf8c55d47ab108bf09c64dc07071bd1ca27eba1db7ccf468c |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 5, 2025 | https://github.com/python/pythoncapi-compat/pull/159#issuecomment-3492859865 |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| colesbury | https://github.com/colesbury |
| November 5, 2025 16:44 | https://github.com/python/pythoncapi-compat/pull/159#commits-pushed-6240ab3 |
|
| https://github.com/colesbury |
|
| https://github.com/vstinner |
| Apply suggestions from code review | https://github.com/python/pythoncapi-compat/pull/159/commits/6240ab3b9ad4e34eed1cfda0fe3a35441364bfc1 |
| 6240ab3 | https://github.com/python/pythoncapi-compat/pull/159/commits/6240ab3b9ad4e34eed1cfda0fe3a35441364bfc1 |
|
| https://github.com/colesbury |
| Rename MyType to TryIncrefType | https://github.com/python/pythoncapi-compat/pull/159/commits/ac639f69d9750164acf42d7562a29b2c9f6a3664 |
| ac639f6 | https://github.com/python/pythoncapi-compat/pull/159/commits/ac639f69d9750164acf42d7562a29b2c9f6a3664 |
| https://github.com/colesbury |
| colesbury | https://github.com/colesbury |
| vstinner | https://github.com/vstinner |
| November 5, 2025 21:46 | https://github.com/python/pythoncapi-compat/pull/159#event-20742301327 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Nov 5, 2025
| https://github.com/python/pythoncapi-compat/pull/159#pullrequestreview-3424598282 |
|
View reviewed changes
| https://github.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664 |
| tests/test_pythoncapi_compat_cext.c | https://github.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664#diff-35d7a40ba0c92dfc39d93e0f7a7ed4b404e9ab7ac23f06d4725af8741b7c6d12 |
| vstinner | https://github.com/vstinner |
| Nov 5, 2025 | https://github.com/python/pythoncapi-compat/pull/159#discussion_r2496293774 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
|
| https://github.com/colesbury |
| Rename MyObject to TryIncref | https://github.com/python/pythoncapi-compat/pull/159/commits/6d697809fc9f80e49d7fde93109a78a8e6848afc |
| 6d69780 | https://github.com/python/pythoncapi-compat/pull/159/commits/6d697809fc9f80e49d7fde93109a78a8e6848afc |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| c44469c | https://github.com/python/pythoncapi-compat/commit/c44469cc02bc857de286f9043b677d545c2030b7 |
| Nov 5, 2025 | https://github.com/python/pythoncapi-compat/pull/159#event-20742633780 |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 5, 2025 | https://github.com/python/pythoncapi-compat/pull/159#issuecomment-3493748486 |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
| https://github.com/colesbury |
| colesbury | https://github.com/colesbury |
| November 5, 2025 22:08 | https://github.com/python/pythoncapi-compat/pull/159#event-20742655980 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpythoncapi-compat%2Fpull%2F159 |
|
| https://github.com/vstinner |
|
vstinner
| https://github.com/vstinner |
|
| https://github.com/python/pythoncapi-compat/pull/159/files/ac639f69d9750164acf42d7562a29b2c9f6a3664 |
| Please reload this page | https://github.com/python/pythoncapi-compat/pull/159 |
|
| https://github.com/colesbury |
|
| https://github.com/vstinner |
|
| 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 |