Uh oh!
There was an error while loading. Please reload this page.
[3.12] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807) - #124818
Closed
Yhg1s wants to merge 1 commit into
Closed
[3.12] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807)#124818Yhg1s wants to merge 1 commit into
Yhg1s wants to merge 1 commit into
Conversation
…red immortal interned strings (pythongh-124646)" (pythongh-124807) Revert "pythongh-116510: Fix crash due to shared immortal interned strings. (pythongh-124646)" This reverts commit 98b2ed7. (cherry picked from commit 7bdfabe) Co-authored-by: T. Wouters <thomas@python.org>
Yhg1s
commented
Oct 1, 2024
MemberAuthor
Already resolved in #124814. |
| if (interned == NULL) { | ||
| return -1; | ||
| } | ||
| PyObject *interned = interned = PyDict_New(); |
Contributor
There was a problem hiding this comment.
Why do you want to do this? Rather than
PyObject*interned=PyDict_New();Member
There was a problem hiding this comment.
It's just a straight reversion of my change so that matches the previous code. I agree with you though, looks odd to write it that way.
MemberAuthor
There was a problem hiding this comment.
It's a revert. Even worse, it's a backport of a revert. That's what the original code was. I imagine it was a mistake in the original PR (#102339) but that, too, may have been moved from somewhere else.
If you want to send a PR to fix it (in main) I'm sure Eric wouldn't mind reviewing :)
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 freeto 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.
Revert "gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)"
This reverts commit 98b2ed7.
(cherry picked from commit 7bdfabe)