-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Embeded sub-interpreters #5666
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 all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6f5b38d
First draft a subinterpreter embedding API
b-pass ee42fe5
Move subinterpreter tests to their own file
b-pass 45159fd
Migrate subinterpreter tests to use the new embedded class.
b-pass 5b5a1e8
Add a test for moving subinterpreters across threads for destruction
b-pass 74080eb
Code organization
b-pass 51764f0
Add a test which shows demostrates how gil_scoped interacts with sub-…
b-pass 68543fa
Add documentation for embeded sub-interpreters
b-pass 7a00f32
Some additional docs work
b-pass e903406
Add some convenience accessors
b-pass 70c24e8
Add some docs cross references
b-pass 3c78e4b
Sync some things that were split out into #5665
b-pass ca44bfe
Update subinterpreter docs example to not use the CPython api
b-pass e9b2a57
Fix pip test
b-pass 096afd9
style: pre-commit fixes
pre-commit-ci[bot] 9db4f32
Fix MSVC warnings
b-pass a536fdc
Add some sub-headings to the docs
b-pass 29e3171
Oops, make_unique is C++14 so remove it from the tests.
b-pass d4b1c44
I think this fixes the EndInterpreter issues on all versions.
b-pass eda11c1
Add a note about exceptions.
b-pass cd12019
style: pre-commit fixes
pre-commit-ci[bot] bddcfb5
Add try/catch to docs examples to match the tips
b-pass 8770bfa
Python 3.12 is very picky about this first PyThreadState
b-pass ae097c8
style: pre-commit fixes
pre-commit-ci[bot] 6062230
Missed a rename in a ifdef block
b-pass 2aae3b8
I think this test is causing problems in 3.12, so try ifdefing it to …
b-pass dc57729
style: pre-commit fixes
pre-commit-ci[bot] ae0da30
Document the 3.12 constraints with a warning
b-pass 68c68d7
Apply suggestions from code review
henryiii 30c520b
ci: add cpptest to the clang-tidy job
henryiii babf12a
noexcept move operations
b-pass 59f82a2
Update include/pybind11/subinterpreter.h
b-pass 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
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
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
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.