bpo-33932: Calling Py_Initialize() twice does nothing#7845
Merged
vstinner merged 2 commits intopython:masterfrom Jun 22, 2018
vstinner:py_init
Merged
bpo-33932: Calling Py_Initialize() twice does nothing#7845vstinner merged 2 commits intopython:masterfrom vstinner:py_init
vstinner merged 2 commits intopython:masterfrom
vstinner:py_init
Conversation
Calling Py_Initialize() twice does nothing, instead of failing with a fatal error: restore the Python 3.6 behaviour.
Exit early if Python is already initialized. Revert my previous change in _Py_InitializeCore().
Member
Author
|
Oops, I didn't ran the test before pushing. Shame on my. It should be better with the second commit :-) |
Member
Author
|
@serhiy-storchaka: Would you mind to have a look at this change? It seems to fix a regression introduced in Python 3.7: https://bugs.python.org/issue33932 I'm not sure that it has been made on purpose. At least, it broke an application in the wild... |
zhangyangyu
approved these changes
Jun 22, 2018
Contributor
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
GH-7859 is a backport of this pull request to the 3.7 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jun 22, 2018
Calling Py_Initialize() twice does nothing, instead of failing with a fatal error: restore the Python 3.6 behaviour. (cherry picked from commit 209abf7) Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington
added a commit
that referenced
this pull request
Jun 22, 2018
ned-deily
pushed a commit
to ned-deily/cpython
that referenced
this pull request
Jun 27, 2018
Calling Py_Initialize() twice does nothing, instead of failing with a fatal error: restore the Python 3.6 behaviour. (cherry picked from commit 209abf7) Co-authored-by: Victor Stinner <vstinner@redhat.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Calling Py_Initialize() twice does nothing, instead of failing with a
fatal error: restore the Python 3.6 behaviour.
https://bugs.python.org/issue33932