-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-34206: Improve docs and test coverage for pre-init functions #8023
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
ncoghlan
merged 29 commits into
python:main
from
ncoghlan:bpo-34008-py-main-after-py-initialize
Oct 8, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6fd7a02
bpo-34008: Py_Main and Py_IsInitialized are preinit functions
ncoghlan 90aea92
Add news entry
ncoghlan 6708545
Fix directive markup
ncoghlan c2e12cc
Reword Py_Main docs
ncoghlan eb855e1
Replace note with NEWS entry for Py_Main docs move
ncoghlan 68e37d1
Further pre-initialization test improvements
ncoghlan f0c8c9d
Adjust wording to be more accurate for 3.6 and 3.7
ncoghlan e652a86
Add missing word
ncoghlan 225bc42
Fix typo
ncoghlan 036f6f3
Update NEWS entry
ncoghlan 24586e5
Merge remote-tracking branch 'origin/master' into bpo-34008-py-main-a…
ncoghlan 8310a1a
Tweak wording of Py_Main and Py_BytesMain docs
ncoghlan f3d9713
Tweak presentation order of init functions
ncoghlan e32d458
Further integrate old and new init API docs
ncoghlan 6b50669
Merge in online PR changes, move InitalizeFromConfig to main init sec…
ncoghlan fd8d763
Merge branch 'master' into bpo-34008-py-main-after-py-initialize
ncoghlan 70e43bd
Merge remote-tracking branch 'origin/main' into bpo-34008-py-main-aft…
ncoghlan 31b00fb
Merge branch 'main' into bpo-34008-py-main-after-py-initialize
ncoghlan c6838ca
Fix merge error
ncoghlan 634f1a0
Fix up NEWS entries
ncoghlan 2d75186
Actually reference the init-from-config anchor
ncoghlan 54e5391
Eliminate Py_RunMain docs duplication
ncoghlan 9a6fec5
Fix anchor syntax
ncoghlan e875817
Replace stale reference to Py_Finalize
ncoghlan e42ebb5
Fix typo
ncoghlan 0a58fcd
Remove trailing whitespace
ncoghlan b54aa49
Merge branch 'main' into bpo-34008-py-main-after-py-initialize
ncoghlan c5bb626
Add back Py_Finalize docs (presumably lost in a merge error)
ncoghlan aad97ee
Apply suggestions from code review
ncoghlan 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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/C API/2018-06-30-21-48-16.bpo-34008.2Wjtm0.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added ``Py_IsInitialized`` to the list of APIs that are safe to call before | ||
the interpreter is initialized, and updated the embedding tests to cover it. | ||
ncoghlan marked this conversation as resolved.
Show resolved
Hide resolved
|
8 changes: 8 additions & 0 deletions
8
Misc/NEWS.d/next/Documentation/2018-07-04-20-35-25.bpo-34008.bqecIb.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The :c:func:`Py_Main` documentation moved from the "Very High Level API" section to the | ||
"Initialization and Finalization" section. | ||
|
||
Also make it explicit that we expect ``Py_Main`` to typically be called instead | ||
of ``Py_Initialize`` rather than after it (since ``Py_Main`` makes its own | ||
call to ``Py_Initialize``). Document that calling both is | ||
supported but is version dependent on which settings | ||
will be applied correctly. |
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.