| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:712de3e7-2c0b-9399-1373-d96e287ae90f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ED66:23021C:574204:74D619:6A5B31FA |
| html-safe-nonce | 5bbb83e9b54c112871293d180751a80e508d16dd7fb4ad0949b93dfa24049c54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDY2OjIzMDIxQzo1NzQyMDQ6NzRENjE5OjZBNUIzMUZBIiwidmlzaXRvcl9pZCI6Ijc3NDEzNzQ0MzA0ODUwOTkwMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fb4d3b3aaa549ee74bfc8b1243ad9cd297baba968d7d6b36905be354967addff |
| hovercard-subject-tag | pull_request:3632176520 |
| 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/RustPython/RustPython/pull/7787/files |
| twitter:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| og:image:alt | This is the next step in adding c-api support. It also contains utilities to handle errors for implementing other c-api functions.
Summary by CodeRabbit
New Features
Expanded C API for exceptio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/7787/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7787%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2FRustPython%2FRustPython%2Fpull%2F7787%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=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/7787/files |
| Reload | https://github.com/RustPython/RustPython/pull/7787/files |
| Reload | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
291
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
101
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%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=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| bschoenmaeckers:capi-errors | https://github.com/bschoenmaeckers/RustPython/tree/capi-errors |
|
Conversation
53
| https://github.com/RustPython/RustPython/pull/7787 |
|
Commits
17
| https://github.com/RustPython/RustPython/pull/7787/commits |
|
Checks
24
| https://github.com/RustPython/RustPython/pull/7787/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
|
Add basic capi error support
| https://github.com/RustPython/RustPython/pull/7787/files#top |
|
Show all changes
17 commits
| https://github.com/RustPython/RustPython/pull/7787/files |
|
2562f9d
Add basic capi error support
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/2562f9dd748e54fd5d467c300d9adb69fec06391 |
|
40d97ea
Add missing symbols to make tests compile again
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/40d97ea83cf8bfca8c2b50197f775c3354f5e895 |
|
6b79cb5
Add `pyerrors` to dictionary
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/6b79cb5e06e56a5b4a5b6901f67fdbda60ee2e19 |
|
71438c6
Return exception in `Py_GetConstantBorrowed`
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/71438c698f5c25303982c4a81c50bf3e3816fa51 |
|
d708bfe
Remove `allow(dead_code)`
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/d708bfe52f35524610de622eb6ffd401311df399 |
|
bbf3656
Fix windows
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/bbf365658b18722d8f5fca7235c51c6188b74508 |
|
bccd38e
Load stdlib when calling `Py_InitializeEx`
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/bccd38e9816d4e4a8181b1bfc2d29fc90861044a |
|
9e20cf7
Debug tests
bschoenmaeckers May 5, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/9e20cf7be626f4bbc6b7c9478dc0e43aa8c65c2f |
|
268856b
Revert "Load stdlib when calling `Py_InitializeEx`"
bschoenmaeckers May 6, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/268856b7fab6ae804aa03c7d35802029a6cdc981 |
|
8432c17
Disable tests on windows for now
bschoenmaeckers May 6, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/8432c1783af996b75974303f9f916c76945d51a5 |
|
130321e
Truncate `PyType_GetFlags` to be always 32 bits
bschoenmaeckers May 6, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/130321e36fb27c867929bd23685f7e3c53e619db |
|
30ac061
Add test for exception type checking
bschoenmaeckers May 6, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/30ac0610b1ffe627c9d8cbf2480d2ab4246ee539 |
|
4e4f7df
Remove subclass type flags
bschoenmaeckers May 6, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/4e4f7df6bd267bad857cc81e40d82173ec80573b |
|
22985ca
Merge remote-tracking branch 'origin/main' into capi-errors
bschoenmaeckers May 9, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/22985ca5603d1b1ff31c3e7f131eb81b76a833a2 |
|
b2c2f69
Use latest pyo3 to make test work on windows
bschoenmaeckers May 9, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/b2c2f6913fc1c2dbacc607c1f1b2e5f37a4768eb |
|
d18d259
Revert "Use latest pyo3 to make test work on windows"
bschoenmaeckers May 10, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/d18d259aa62c77714f8e2504e6d9931e36fe5744 |
|
4e7bcbf
`set_main_interpreter` -> `init_main_interpreter`
bschoenmaeckers May 13, 2026
| https://github.com/RustPython/RustPython/pull/7787/commits/4e7bcbfced3e995be15494aa75de11d048e27948 |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
|
cpython.txt
| https://github.com/RustPython/RustPython/pull/7787/files#diff-157b2289f5afc1eb8c72f9a497cf3ea0082dc3f3baaf1d424889fdb3e4cc0b96 |
|
ci.yaml
| https://github.com/RustPython/RustPython/pull/7787/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd |
|
lib.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-0fe0f9956005679e0794f572fbd45f07f96cde7ab1f3ff7e6c15bd7fa1ee7878 |
|
object.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c |
|
pyerrors.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-182ff1f3912ef23ede35e910440a570c251f3a564eef94cf5ca876939b3ca81d |
|
pylifecycle.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-c498326566a6c12f9e3f63e6dacd72d09baf5335e74b2cd4da2f68324380fcb8 |
|
pystate.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-91ad907d67bdcddff34fdea7b99464a162d6c314d66bd7a2a7bd2adbb2ff5bd2 |
|
util.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-853d32ddc8c3e49303b0d62040d07d6197a113b14e9e0fb3879fb87ac4dcebbd |
|
type.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c |
|
mod.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74 |
|
lib.rs
| https://github.com/RustPython/RustPython/pull/7787/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759 |
| .cspell.dict/cpython.txt | https://github.com/RustPython/RustPython/pull/7787/files#diff-157b2289f5afc1eb8c72f9a497cf3ea0082dc3f3baaf1d424889fdb3e4cc0b96 |
|
View file
| https://github.com/bschoenmaeckers/RustPython/blob/4e7bcbfced3e995be15494aa75de11d048e27948/.cspell.dict/cpython.txt |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7787/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7787/files#diff-157b2289f5afc1eb8c72f9a497cf3ea0082dc3f3baaf1d424889fdb3e4cc0b96 |
|
| https://github.com/RustPython/RustPython/pull/7787/files#diff-157b2289f5afc1eb8c72f9a497cf3ea0082dc3f3baaf1d424889fdb3e4cc0b96 |
| .github/workflows/ci.yaml | https://github.com/RustPython/RustPython/pull/7787/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd |
|
View file
| https://github.com/bschoenmaeckers/RustPython/blob/4e7bcbfced3e995be15494aa75de11d048e27948/.github/workflows/ci.yaml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7787/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/7787/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
|
| https://github.com/RustPython/RustPython/pull/7787/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd |
| crates/capi/src/lib.rs | https://github.com/RustPython/RustPython/pull/7787/files#diff-0fe0f9956005679e0794f572fbd45f07f96cde7ab1f3ff7e6c15bd7fa1ee7878 |
|
View file
| https://github.com/bschoenmaeckers/RustPython/blob/4e7bcbfced3e995be15494aa75de11d048e27948/crates/capi/src/lib.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7787/{{ revealButtonHref }} |
| crates/capi/src/object.rs | https://github.com/RustPython/RustPython/pull/7787/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c |
|
View file
| https://github.com/bschoenmaeckers/RustPython/blob/4e7bcbfced3e995be15494aa75de11d048e27948/crates/capi/src/object.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7787/{{ revealButtonHref }} |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| crates/capi/src/pyerrors.rs | https://github.com/RustPython/RustPython/pull/7787/files#diff-182ff1f3912ef23ede35e910440a570c251f3a564eef94cf5ca876939b3ca81d |
|
View file
| https://github.com/bschoenmaeckers/RustPython/blob/4e7bcbfced3e995be15494aa75de11d048e27948/crates/capi/src/pyerrors.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/7787/{{ revealButtonHref }} |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/7787/files |
|
| 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 |