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

[3.13] gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API (GH-121364)#121854

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 1 commit intopython:3.13fromencukou:backport-b4aedb2-3.13
Jul 17, 2024

Conversation

@encukou
Copy link
Member

@encukouencukou commentedJul 16, 2024
edited by github-actionsbot
Loading

  • Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs

  • Document immortality in some functions that takeconst char *

This is PyUnicode_InternFromString;
PyDict_SetItemString, PyObject_SetAttrString;
PyObject_DelAttrString; PyUnicode_InternFromString; and the PyModule_Add convenience functions.

Always point out a non-immortalizing alternative.

  • Don't immortalize user-provided attr names in _ctypes (cherry picked from commitb4aedb2)

📚 Documentation preview 📚:https://cpython-previews--121854.org.readthedocs.build/

… keep immortalizing in other API (pythonGH-121364)* Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs* Document immortality in some functions that take `const char *`This is PyUnicode_InternFromString;PyDict_SetItemString, PyObject_SetAttrString;PyObject_DelAttrString; PyUnicode_InternFromString;and the PyModule_Add convenience functions.Always point out a non-immortalizing alternative.* Don't immortalize user-provided attr names in _ctypes(cherry picked from commitb4aedb2)Co-authored-by: Petr Viktorin <encukou@gmail.com>
@encukouencukou merged commit4395d68 intopython:3.13Jul 17, 2024
@encukouencukou deleted the backport-b4aedb2-3.13 branchJuly 17, 2024 12:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Fidget-SpinnerFidget-SpinnerFidget-Spinner left review comments

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@encukou@Fidget-Spinner

[8]ページ先頭

©2009-2025 Movatter.jp