gh-111696, PEP 737: Add PyType_GetModuleName() function (#116824)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
Victor Stinner 2024-03-14 19:17:43 +01:00 committed by GitHub
parent 25cd8730aa
commit c432df6d56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 48 additions and 27 deletions

View file

@ -402,7 +402,7 @@ partial_repr(partialobject *pto)
goto done;
}
mod = _PyType_GetModuleName(Py_TYPE(pto));
mod = PyType_GetModuleName(Py_TYPE(pto));
if (mod == NULL) {
goto error;
}