-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PEP 734: Multiple Interpreters in the Stdlib #3523
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
ericsnowcurrently
merged 87 commits into
python:main
from
ericsnowcurrently:pep-554-rewrite
Nov 28, 2023
Merged
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
c8d079f
Add a post-history entry.
ericsnowcurrently 1b7f9eb
Add PEP 734.
ericsnowcurrently 4d3f06e
Mark PEP 734 as the superseder of PEP 554.
ericsnowcurrently 73f275a
Fix typos.
ericsnowcurrently bc0ab5c
Fix wording.
ericsnowcurrently 3ebbd27
Remove the Content-Type header.
ericsnowcurrently dc192c9
Fix formatting.
ericsnowcurrently b6cd4ee
Clean up examples.
ericsnowcurrently 5b6ca1f
Fix wording.
ericsnowcurrently 2b6cba4
Clarify about Interpreter.exec().
ericsnowcurrently 5dbfef2
Add Introduction and Motivation sections.
ericsnowcurrently 1969079
Make InterpreterPoolExecutor part of the PEP.
ericsnowcurrently 7e2947b
Do not use tables for the API summary.
ericsnowcurrently 309e826
Clean up the builtin exec() comparison section.
ericsnowcurrently a91e77d
Move a note to the rationale.
ericsnowcurrently 1f921af
Be more clear about channel serialization.
ericsnowcurrently 8368c84
Move the note about exception propagation to the rationale.
ericsnowcurrently d038470
Drop text from the isolation section.
ericsnowcurrently 0670951
Fix a link.
ericsnowcurrently 5f9d802
fix executor
ericsnowcurrently a7f4c81
Clarify about channels.
ericsnowcurrently 3b5a174
set_main_attrs() -> prepare___main__()
ericsnowcurrently 3b55bd4
Clarify about the InterpreterID and ChannelID objects.
ericsnowcurrently 99a10e0
Add a note about memoryview.
ericsnowcurrently 84c7de8
Clarify about when to share channels.
ericsnowcurrently 2bead4e
Elaborate on why objects cannot be directly shareable.
ericsnowcurrently e7e2472
Specify __hash__() and __eq__().
ericsnowcurrently b5fc432
Fix up the examples.
ericsnowcurrently 16aabec
Drop the Documentation section.
ericsnowcurrently 63cac3e
Expand the note about the propagated exception.
ericsnowcurrently cb6cd3e
formatting
ericsnowcurrently 256eb4e
Add an example for how exec() ignores any return value.
ericsnowcurrently 5879ff3
channels -> queues
ericsnowcurrently 3ddbf02
Add a section about synchronization.
ericsnowcurrently 7bc3315
Fix API spec formatting.
ericsnowcurrently 5dd78bc
Tweak API spec formatting.
ericsnowcurrently 5f8e4c7
Match queue.Queue more closely.
ericsnowcurrently 408bc81
Update the Synchronization section.
ericsnowcurrently db82b9b
Add exception classes.
ericsnowcurrently 8461f0f
Drop Queue.close().
ericsnowcurrently 3f3188f
Drop queue put/get sync.
ericsnowcurrently 799b28e
Fix the examples.
ericsnowcurrently 11cc851
C-API -> C API.
ericsnowcurrently e0ee12b
formatting
ericsnowcurrently ab499fd
Clarify about OS threads vs. thread states.
ericsnowcurrently 62607fb
Clarify some wording.
ericsnowcurrently 89a205b
Clarify the relationship beween thread state and interpreters.
ericsnowcurrently 2f76817
Clarify about the ID attributes.
ericsnowcurrently c517685
Clarify about Py_NewInterpreter().
ericsnowcurrently 8560abb
Clarify about interpreter init.
ericsnowcurrently 4d8ee95
Avoid "we".
ericsnowcurrently c1662e3
Clarify about the C API runtime context.
ericsnowcurrently f5fc9b5
Clarify about finalization.
ericsnowcurrently 553e470
Distinguish between mutable and immutable shared state.
ericsnowcurrently b4bc397
prepare___main__() -> prepare_main()
ericsnowcurrently 6115a05
Clarify the rationale for prepare_main().
ericsnowcurrently ba90c62
Clarify about RunFailedError.
ericsnowcurrently c5bf70a
Clarify about shareable objects.
ericsnowcurrently 6ffb163
Clarify how interpreters and queues are exposed by ID.
ericsnowcurrently 03afff2
Note that there is one Interpreter object per ID.
ericsnowcurrently f2529e6
Clarify that interpreters may have zero thread states.
ericsnowcurrently 3a238e9
Use put() in the shared resource example.
ericsnowcurrently 6d38e12
Drop the second synchronizing example.
ericsnowcurrently 4f2e4e2
Clarify about RunFailedError.
ericsnowcurrently 5df3837
Move the comparison section up to the introduction.
ericsnowcurrently fee27e4
identical -> strictly equivalent
ericsnowcurrently 90c8913
Clarify about id.
ericsnowcurrently 774c125
Fix a sentence.
ericsnowcurrently 1798f24
Clarify about object uniqueness.
ericsnowcurrently e4ac108
Drop __eq__().
ericsnowcurrently 0609ab3
Clarify about maxsize.
ericsnowcurrently 7c629e6
Add a note about stability of getter return values.
ericsnowcurrently 36b1e5d
Clarify about put_nowait().
ericsnowcurrently 463259a
Clarify about shareable object equivalence.
ericsnowcurrently ff9342b
simplify
ericsnowcurrently ea5c75e
Clarify about sharing queues.
ericsnowcurrently 2f3fa4f
Clean up about InterpreterPoolExecutor.
ericsnowcurrently 256347c
Fix examples.
ericsnowcurrently 1427ccb
Use .put() in examples instead of .put_nowait().
ericsnowcurrently e8a518a
Clarify Interpreter.exec().
ericsnowcurrently ae69298
Drop the bullet about exec() discarding return values.
ericsnowcurrently 8d4676a
Drop the get_nowait() "default" arg.
ericsnowcurrently d31c379
Add a CODEOWNERS entry.
ericsnowcurrently 421804d
Interpreter.exec() -> .exec_sync()
ericsnowcurrently 0e3e5a0
Clarify about the propagated exception.
ericsnowcurrently d9ae6b1
Add Interpreter.run().
ericsnowcurrently 8424321
RunFailedError -> ExecFailure
ericsnowcurrently 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
Clean up the builtin exec() comparison section.
- Loading branch information
commit 309e8267b913639cd415dba80ca7a70ccb47237a
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because
2F87
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.