GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — [3.12] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807) by Yhg1s · Pull Request #124818 · python/cpython Conversation
|
|
Already resolved in #124814. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (interned == NULL) { | ||
| return -1; | ||
| } | ||
| PyObject *interned = interned = PyDict_New(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to do this? Rather than
PyObject *interned = PyDict_New();
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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 :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.