mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-40024: Add PyModule_AddType() helper function (GH-19088)
This commit is contained in:
parent
b33e52511a
commit
05e4a296ec
10 changed files with 52 additions and 42 deletions
|
@ -431,6 +431,7 @@ check_set_special_type_attr(PyTypeObject *type, PyObject *value, const char *nam
|
|||
const char *
|
||||
_PyType_Name(PyTypeObject *type)
|
||||
{
|
||||
assert(type->tp_name != NULL);
|
||||
const char *s = strrchr(type->tp_name, '.');
|
||||
if (s == NULL) {
|
||||
s = type->tp_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue