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-90699: use statically allocated strings in typeobject.c#93751

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
corona10 merged 2 commits intopython:mainfromkumaraditya303:typeobject
Jun 12, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
use static strings
  • Loading branch information
@kumaraditya303
kumaraditya303 authoredJun 12, 2022
commit97f60f5e9c4ef79f9aa1358c01b0c04047e03be1
4 changes: 2 additions & 2 deletionsObjects/typeobject.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3637,13 +3637,13 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,

if (weaklistoffset) {
type->tp_weaklistoffset = weaklistoffset;
if (PyDict_DelItemString((PyObject *)type->tp_dict,"__weaklistoffset__") < 0) {
if (PyDict_DelItem((PyObject *)type->tp_dict,&_Py_ID(__weaklistoffset__)) < 0) {
goto finally;
}
}
if (dictoffset) {
type->tp_dictoffset = dictoffset;
if (PyDict_DelItemString((PyObject *)type->tp_dict,"__dictoffset__") < 0) {
if (PyDict_DelItem((PyObject *)type->tp_dict,&_Py_ID(__dictoffset__)) < 0) {
goto finally;
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp