Repository navigation
Add basic capi error support #7787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2562f9d
Add basic capi error support
bschoenmaeckers 40d97ea
Add missing symbols to make tests compile again
bschoenmaeckers 6b79cb5
Add `pyerrors` to dictionary
bschoenmaeckers 71438c6
Return exception in `Py_GetConstantBorrowed`
bschoenmaeckers d708bfe
Remove `allow(dead_code)`
bschoenmaeckers bbf3656
Fix windows
bschoenmaeckers bccd38e
Load stdlib when calling `Py_InitializeEx`
bschoenmaeckers 9e20cf7
Debug tests
bschoenmaeckers 268856b
Revert "Load stdlib when calling `Py_InitializeEx`"
bschoenmaeckers 8432c17
Disable tests on windows for now
bschoenmaeckers 130321e
Truncate `PyType_GetFlags` to be always 32 bits
bschoenmaeckers 30ac061
Add test for exception type checking
bschoenmaeckers 4e4f7df
Remove subclass type flags
bschoenmaeckers 22985ca
Merge remote-tracking branch 'origin/main' into capi-errors
bschoenmaeckers b2c2f69
Use latest pyo3 to make test work on windows
bschoenmaeckers d18d259
Revert "Use latest pyo3 to make test work on windows"
bschoenmaeckers 4e7bcbf
`set_main_interpreter` -> `init_main_interpreter`
bschoenmaeckers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disable tests on windows for now
- Loading branch information
commit 8432c1783af996b75974303f9f916c76945d51a5
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything wrong about this? we can pick proper pyo3 version for windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It used to work because we were accidentally linking with the system python. This is now solved. But to make the linker happy we need PyO3/pyo3#5866, this will land in PyO3 0.29 which is unreleased as the time of writing. Furthermore the windows linker expect all symbols to be defined we can only enable this at a later stage when we have defined all ABI3 symbols, see https://github.com/RustPython/RustPython/actions/runs/25607984643/job/75173077533