Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal#121358

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
encukou merged 2 commits intopython:mainfromencukou:no-assert-immortal
Jul 16, 2024

Conversation

@encukou
Copy link
Member

@encukouencukou commentedJul 4, 2024
edited by bedevere-appbot
Loading

Older stable ABI extensions are allowed to make immortal objects mortal.
Instead of_Py_IsImmortal, use_PyUnicode_STATE (interned and
statically_allocated), or skip asserts altogether.

…sImmortalOlder stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
@mgorny
Copy link
Contributor

Thanks. I can confirm that it fixes the problem that I've hit with rustworkx and pyproject-fmt-rust.

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@encukou for commit4d92f62 🤖

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJul 16, 2024
@encukouencukou merged commit956270d intopython:mainJul 16, 2024
@miss-islington-app
Copy link

Thanks@encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@encukouencukou deleted the no-assert-immortal branchJuly 16, 2024 13:17
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 16, 2024
…_IsImmortal (pythonGH-121358)Older stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).(cherry picked from commit956270d)Co-authored-by: Petr Viktorin <encukou@gmail.com>
@bedevere-app
Copy link

GH-121851 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelJul 16, 2024
encukou added a commit that referenced this pull requestJul 16, 2024
…y_IsImmortal (GH-121358) (GH-121851)gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)Older stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).(cherry picked from commit956270d)Co-authored-by: Petr Viktorin <encukou@gmail.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull requestJul 17, 2024
…_IsImmortal (pythonGH-121358)Older stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
encukou added a commit to encukou/cpython that referenced this pull requestOct 3, 2024
…rt) _Py_IsImmortal (pythonGH-121358) (pythonGH-121851)pythongh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (pythonGH-121358)Older stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).(cherry picked from commit956270d)Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou added a commit that referenced this pull requestOct 4, 2024
…y_IsImmortal (GH-121358) (GH-124938)gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)Older stable ABI extensions are allowed to make immortal objects mortal.Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).(cherry picked from commit956270d)Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@encukou@mgorny@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp