Skip to content
Merged
Changes from 1 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
Prev Previous commit
Use interned strings
  • Loading branch information
cdce8p committed Jan 10, 2026
commit b5b8f9336a4071dc50cfee31cd99cd40944a20f5
4 changes: 2 additions & 2 deletions mypyc/lib-rt/pythonsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ update_bases(PyObject *bases)
}
continue;
}
if (PyObject_GetOptionalAttrString(base, "__mro_entries__", &meth) < 0) {
if (PyObject_GetOptionalAttr(base, mypyc_interned_str.__mro_entries__, &meth) < 0) {
goto error;
}
if (!meth) {
Expand Down Expand Up @@ -92,7 +92,7 @@ init_subclass(PyTypeObject *type, PyObject *kwds)
return -1;
}

func = PyObject_GetAttrString(super, "__init_subclass__");
func = PyObject_GetAttr(super, mypyc_interned_str.__init_subclass__);
Py_DECREF(super);
if (func == NULL) {
return -1;
Expand Down