gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal by encukou · Pull Request #121358 · python/cpython · GitHub

github.com

Tin mới

encukou:no-assert-immortal

miss-islington-app

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Interned strings are immortal, despite what the documentation says #113993

: For string interning, do not assert or rely on _Py_I…

needs backport to 3.13

needs backport to 3.13

awaiting core review

awaiting core review

python: Objects/unicodeobject.c:15052: intern_static: Assertion '_Py_IsImmortal(s)' failed. in various projects with pyo3-0.21.2 and Python 3.13.0b3 PyO3/pyo3#4309

[py3.13] rustworkx: python: ./Include/internal/pycore_object.h:268: _PyObject_Init: Assertion '_PyType_HasFeature(typeobj, Py_TPFLAGS_HEAPTYPE) || _Py_IsImmortal(typeobj)' failed. PyO3/pyo3#4311

🔨 test-with-buildbots

🔨 test-with-buildbots

: For string interning, do not rely on (or assert) _Py…

bedevere-app Bot commented Jul 16, 2024

bedevere-app Bot commented Jul 16, 2024

GH-121851 is a backport of this pull request to the 3.13 branch.

: For string interning, do not rely on (or assert) _P…

: For string interning, do not rely on (or assert) _Py…

: For string interning, do not rely on (or asse…

: For string interning, do not rely on (or assert) _P…